Forum Discussion
LyncoData1
6 years agoHelper I
PYTD
Hello, I am having trouble with pulling Net Sales for the month of March. I am trying to compare current year sales to prior year sales and drill down. I am comparing Net Sales for the full year...
- 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!
Greg_Deckler
6 years agoCommunity Champion
When using time intelligence functions you generally need a separate date table.
See if my Time Intelligence the Hard Way provides a different way of accomplishing what you are going for.
https://community.powerbi.com/t5/Quick-Measures-Gallery/Time-Intelligence-quot-The-Hard-Way-quot-TITHW/m-p/434008