Forum Discussion
SpiroswayGR
Resolver III
5 years agoSystem Date / between filter for 2 different years
Dear all, I am trying to create 2 measures to calculate revenue for 2 different years. 1st : CY Revenue = CALCULATE(SUMX (revenue(field) , filters ) this is correct 2nd : PLY (previews last ye...
v-lionel-msft
Community Support
5 years agoHi SpiroswayGR ,
Is your model like this?
You should add the dates in the fact table (Calendar table) to the slicer.
Best regards,
Lionel Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
SpiroswayGR
Resolver III
5 years ago
like this
Sheet1 = main table
- v-lionel-msft5 years ago
Community Support
Hi SpiroswayGR ,
The first method is to use the date field of the calendar table in the slicer, and the second method is to use the date field of the main table in the DAX formula.
Best regards,
Lionel ChenIf this post helps, then please consider Accept it as the solution to help the other members find it more quickly.