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
Hi,
I have a dax calendar with the following elements :
And I would like to add a month ID column that would give me a relative ranking based on the current month (current month is 0).
I know how to use rank but not with a specific value as a start.
2021-11 | -4 |
2021-12 | -3 |
2022-01 | -2 |
2022-02 | -1 |
2022-03 | 0 |
2022-04 | 1 |
2022-05 | 2 |
Thank you
Have a nice day
Jack
Solved! Go to Solution.
add a new column to your calendar definition
"Ranking",
var yearMonInt = INT( FORMAT( [Date], "YYYYMM"))
var todayInt = INT( FORMAT( TODAY(), "YYYYMM"))
return yearMonInt - todayInt
add a new column to your calendar definition
"Ranking",
var yearMonInt = INT( FORMAT( [Date], "YYYYMM"))
var todayInt = INT( FORMAT( TODAY(), "YYYYMM"))
return yearMonInt - todayInt
Thank you so much! It definitely does the job 🙂
User | Count |
---|---|
13 | |
10 | |
8 | |
7 | |
5 |
User | Count |
---|---|
24 | |
16 | |
15 | |
10 | |
7 |