Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago
Solved

Calculate Cumulative headcount numbers

Hi there, need some assistance with calculating cumulative headcount. I have a data file with a starting headcount for the beginning of the year and then all year to date hires and leavers in separa...
  • Greg_Deckler's avatar
    Greg_Deckler
    4 years ago

    Anonymous Why are you using TODAY? Where you have TODAY, this needs to be the termination date of your person.

    Running Total Hires = VAR __Date = MAX(New_Hires[Effective Date]) RETURN COUNTROWS(FILTER(ALL(New_Hires),[Effective Date] <= __Date))