I have two measures in my tabular cube.
The first one called
'Number of Days' := CALCULATE(COUNTROWS(SUMMARIZE('A'[Date])))
The second one will includes the first one as its expression
'Number of Days (MTD)' := CALCULATE(TOTALMTD([Number of Days],'A'[Date]))
The second measure when I browse the cube and pull out the measure. It runs incredibly slow.
Any idea how I can optimize these measurements and make it run faster?
Volume:= SUMX(A, DIVIDE([Volume],2))
Volume (MTD):= TOTALMTD([Volume],'A'[Date])
Updated extra measurements
'A'
a Calendar/Date table? Note TOTALMTD is a Time Intelligence function which only works properly with a table marked as Date/Calendar. I think you can use explicit filters but you will have to provide data sample in order to help you. – alejandro zuleta