Forum Discussion
Anonymous
6 years agoNot applicable
Total YTD does not work
I have a table which I use to override a SUM measurement. This works fine in overriding the Sum measurement. However when I apply DATESYTD function on this measurement, I get incorrect results. My mo...
Anonymous
6 years agoNot applicable
Hi Anonymous ,
Let me know if this works
Measure = CALCULATE (
[#New Term Policy],
FILTER (
ALL ( Calendar ),
'Calendar'[Date]
<= MAX ( 'Calendar'[Date] )
&& YEAR ( 'Calendar'[Date] )
= YEAR (
MAX ( 'Calendar'[Date] )
)
)
)
[#New Term Policy],
FILTER (
ALL ( Calendar ),
'Calendar'[Date]
<= MAX ( 'Calendar'[Date] )
&& YEAR ( 'Calendar'[Date] )
= YEAR (
MAX ( 'Calendar'[Date] )
)
)
)
Regards,
Harsh Nathani
Did I answer your question? Mark my post as a solution! Appreciate with a Kudos!! (Click the Thumbs Up Button)
- Anonymous6 years agoNot applicable
Thanks for the suggestion. I got the same result. It is not working.
Any other ideas?
- Anonymous6 years agoNot applicable
Anonymous ,
What i understand from your visual is taht Report Date is not part of the Date Table.
You need to pull the Date from the Date table in the visualization.
Regards,
HN
Can you share your model and some sample date in text format.
- Anonymous6 years agoNot applicable
It appears what is happening is Power BI is not letting 2 different Date relationship from 2 seperate table to exist in one YTD calculation.
Does that make sense?