Forum Discussion
LY YTD Calculation
Please find the attached file. I have done it for qtr, but you can use the datesytd for ytd.
https://www.dropbox.com/s/9rkj9v2y74mdxny/Missingsales.pbix?dl=0
To get the best of the time intelligence function. Make sure you have a date calendar and it has been marked as the date in model view. Also, join it with the date column of your fact/s. Refer :
https://radacad.com/creating-calendar-table-in-power-bi-using-dax-functions
https://www.archerpoint.com/blog/Posts/creating-date-table-power-bi
https://www.sqlbi.com/articles/creating-a-simple-date-table-in-dax/
- Anonymous6 years agoNot applicable
hi amitchandak & Greg_Deckler ,
Thank you both for your prompt replies.
Both solutions can calculate YTD, however cannot calculate YTD filtering "actuals" only.
I can workout YTD, but the key component is for the period criteria to be dependent on figures being present in "actuals" beyond a certain date.
Cheers,
Dan
- Greg_Deckler6 years agoCommunity Champion
Anonymous - Going to need to get some sample data. Please see this post regarding How to Get Your Question Answered Quickly: https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490