Forum Discussion
nmhung49
Helper II
5 years agoCaculate same period last year
I have Data table with date 01/01/2020 to 05/31/2021 and DimDate with date 01/01/2020 to 12/31/2021 When I create Dax Same Period Last Year for result 98 is incorrect. It is correct 13 Please help ...
- 5 years ago
amitchandak
Super User
5 years agonmhung49 , I check out total of year 2020 is 98. As you have seleced year, That will give you year total.
Also marked DimDate table as date table(option on right on table) and createcolumsn for Month, Yeat etc
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 :radacad sqlbi My Video Series Appreciate your Kudos.
- nmhung495 years ago
Helper II
Thanks for you repply
If slicer selected 2021 and Month not selected. I want Card Current Year show 30 and Card Same Period Last Year show 11
Thanks