I have two slicers :
I want to calculate the total of product with the date_sold between the year selected and the month selected
and the last year the same month.
Example :
Current selection :
month : january
year : 2022
the range : january 2021 - january 2022
The measure of count is simple : CountProducts = COUNT(FCT_Table[ProductID])
Solved! Go to Solution.
YourMeasure=
CALCULATE(COUNT(FCT_Table[ProductID])
DATESINPERIOD(FCT_Table[date_sold],
LASTDATE(FCT_Table[date_sold]),-12, MONTH),
USERELATIONSHIP(dim_calendrier[id],FCT_Table[date_sold]))
YourMeasure=
CALCULATE(COUNT(FCT_Table[ProductID])
DATESINPERIOD(FCT_Table[date_sold],
LASTDATE(FCT_Table[date_sold]),-12, MONTH),
USERELATIONSHIP(dim_calendrier[id],FCT_Table[date_sold]))
Join us for a free, hands-on Microsoft workshop led by women trainers for women where you will learn how to build a Dashboard in a Day!
User | Count |
---|---|
114 | |
73 | |
64 | |
51 | |
49 |
User | Count |
---|---|
184 | |
104 | |
82 | |
79 | |
78 |