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 all,
Couldn't get my "Cumulative Mthly Leavers" column to work. Would appreciate your guidance, please.
Thanks!
Vin
Solved! Go to Solution.
Hi @VinLee1314
you have to YearMonth number column in your date table. The try the following
Cumulative Mthly Leavers =
CALCULATE (
[Leavers],
'Calendar'[YearMonth] <= MAX ( 'Calendar'[YearMonth] ),
ALLSELECTED ( 'Calendar' )
)
I managed to get it working on a monthly basis. I would like the running total to continue after the year ends. How do I make changes to the DAX?
Hi @VinLee1314
you have to YearMonth number column in your date table. The try the following
Cumulative Mthly Leavers =
CALCULATE (
[Leavers],
'Calendar'[YearMonth] <= MAX ( 'Calendar'[YearMonth] ),
ALLSELECTED ( 'Calendar' )
)
// # Leavers TD = count of leavers to date
[# Leavers TD] =
var LastVisibleDate = MAX( 'Calendar'[Date] )
var Output =
CALCULATE(
[# Leavers],
'Calendar'[Date] <= LastVisibleDate,
ALLSELECTED ( 'Calendar' )
)
return
Output
User | Count |
---|---|
12 | |
11 | |
8 | |
6 | |
6 |
User | Count |
---|---|
25 | |
19 | |
14 | |
10 | |
7 |