Supplies are limited. Contact info@espc.tech right away to save your spot before the conference sells out.
Get your discountScore big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount
I tried to write the following:
Solved! Go to Solution.
the issue is from the nature of variable in DAX. Once defined, a variable is stored as a constant. So whatever filter you add in expressions like
CALCULATE(CY, SAMEPERIODLASTYEAR('Calendar'[Date]))
it simply return CY, a constant defined before.
So CALCULATE([Total Sales], SAMEPERIODLASTYEAR('Calendar'[Date])) is the right approach.
Dear Sudden Clarity,
You could use same period last year as a Variable - see my example where as Variable is using same periodlastyear
and with date change,
the issue is from the nature of variable in DAX. Once defined, a variable is stored as a constant. So whatever filter you add in expressions like
CALCULATE(CY, SAMEPERIODLASTYEAR('Calendar'[Date]))
it simply return CY, a constant defined before.
So CALCULATE([Total Sales], SAMEPERIODLASTYEAR('Calendar'[Date])) is the right approach.
User | Count |
---|---|
12 | |
12 | |
8 | |
8 | |
6 |
User | Count |
---|---|
27 | |
19 | |
13 | |
11 | |
7 |