Forum Discussion
PYTD
- 6 years ago
Hi LyncoData1 ,
I‘ve tested your measure with my sample data and it works fine.You need to use the dimCalendar [date] as the slicer,then you will see:
Do remember to create a relationship between FactNetSales table and DimCalendar table.
Here is my .pbix file.
Best Regards,
KellyDid I answer your question? Mark my post as a solution!
Hi LyncoData1 ,
I‘ve tested your measure with my sample data and it works fine.You need to use the dimCalendar [date] as the slicer,then you will see:
Do remember to create a relationship between FactNetSales table and DimCalendar table.
Here is my .pbix file.
Kelly
Thank you so much! This worked. However, the month of Feb in 2020 has duplicated the same values from Feb 28th to Feb 29th (159.20). I am not sure if it is because the month of Feb is a day longer compared to previous years where Feb is typically 28 days. When I only bring in Net Sales for 2019 the number does not duplicate. However, when I use PYTDSales measure the numbers duplicate themselves. Do you have any insight on how to fix?