Forum Discussion
PavelR
9 years agoSolution Specialist
YTD last year DAX
Hi, I have question about YTD Last year DAX formula. Even though I have read many blogs and topics here in community, I still don't know how to solve this issue. Suppose I have data like below. ...
- 9 years ago
It should work fine in Power BI.
You didn't have any dates in your Data table beyond 3 Jan 2017 did you?
Here is a sample PBIX file with your data posted above where the measure is working:
I made a small change to the YTD measure so that it is not displayed after the max date in Data table, but the YTD LY measure is the same as I posted.
Have a play with that - there must be some difference in your model if it is not working.
Owen
rajkmr2195
6 years agoRegular Visitor
Total YTD = CALCULATE(SUM(Sheet1[Value]),FILTER('DimDate','DimDate'[Year]))
This will give individual year of YTD .
carlosrojaspdx
4 years agoFrequent Visitor
rajkmr2195,
Thank you for this formula, very useful and beautifuly made 🙂
Carlos