Forum Discussion

VinLee1314's avatar
VinLee1314
New Member
3 years ago
Solved

Cumulative monthly count

Hi all,   Couldn't get my "Cumulative Mthly Leavers" column to work. Would appreciate your guidance, please.     Leavers = CALCULATE(     [Count of Employees],     USERELATIONSHIP('...
  • tamerj1's avatar
    tamerj1
    3 years ago

    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' )
    )