Forum Discussion

dgkallan's avatar
dgkallan
Helper II
2 years ago
Solved

HR Turnover Rate

This one really has my mind in circles.  I need to produce a turnover rate.  The formula for this is the number of people that left over the period selected (say one year or one month) divided by the...
  • dgkallan's avatar
    2 years ago

    Thanks to BA_Pete I was able to solve this!

     

    Avg Employees =
    VAR startdate = MIN(DateTable[Date])
    VAR enddate = MAX(DateTable[Date])
    VAR EmpsatStart =
    CALCULATE (
        DISTINCTCOUNT(TestEmployees[EEID]),
        FILTER (
             TestEmployees,
             TestEmployees[Hire Date] < startdate
             && (TestEmployees[Term Date] >= startdate || ISBLANK(TestEmployees[Term Date]))
             )
        )

     

    VAR Hires =
    CALCULATE(
        DISTINCTCOUNT(TestEmployees[EEID]),
        FILTER (
            TestEmployees,
            TestEmployees[Hire Date] <= enddate && TestEmployees[Hire Date] >= startdate)
        )
    VAR Terminations =
    CALCULATE(
        DISTINCTCOUNT(TestEmployees[EEID]),
        FILTER (
            TestEmployees,
            TestEmployees[Term Date] <= enddate && TestEmployees[Term Date] >= startdate)
    )

     

        RETURN DIVIDE(EmpsatStart + (EmpsatStart + Hires - Terminations), 20)