Forum Discussion
phjz
2 years agoFrequent Visitor
YTD gets calculated in wrong order
I had a YTD calculation which worked well so far: YTD = CALCULATE(AVERAGEX(SUMMARIZE('Data','Data'[CW],"Weekly",[Old_Value_Measure]),[Weekly]),FILTER(all(Calendar),Calendar[Year] = MAX(Calendar[...
Anonymous
2 years agoNot applicable
Hi phjz
Please try the following DAX:
MEASURE =
CALCULATE (
SUM ( 'Table'[New_value] ) / COUNTROWS ( 'Table' ),
FILTER (
ALL ( 'Calendar' ),
'Calendar'[Date].[Year] = MAX ( 'Calendar'[Date].[Year] )
&& 'Calendar'[Date] <= MAX ( 'Calendar'[Date] )
)
)
Best Regards,
Jayleny
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
phjz
2 years agoFrequent Visitor
Thanks for your reply, but that doesn't work for me, because New_Value is a measure: New_Value_Measure = Old_Value_Measure * Total_Universe / Entitled_Universe
So, I can't sum up this measure....
Any other ideas?
Thanks!