Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.
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