Forum Discussion

tebtim19's avatar
tebtim19
Icon for Helper IV rankHelper IV
5 years ago
Solved

Employee Turn over

Does anyone here how to get the Employee turn over? That it will show like this?

I tried this reference: Power BI: Employee turnover rate template - Finance BI (finance-bi.com)

but it doesn't seems to work, it only shows me no visual data. 

I also have this date table use for filter:

Dates =
ADDCOLUMNS (
CALENDAR ( DATE ( 2012, 1, 1 ), DATE ( 2021, 12, 31 ) ),
"Year", YEAR ( [Date] ),
"Month", FORMAT ( [Date], "MMMM" ),
"Month #", MONTH ( [Date] ),
"Day Month", DAY([Date]) & " " & FORMAT( [Date], "MMMM"),
"Day Month #", DAY([Date]) & " " & FORMAT( [Date], "MMMM"),
"Year Month", YEAR ( [Date] ) & " " & FORMAT ( [Date], "MMMM" ),
"Year Month #", YEAR ( [Date] ) * 100 + MONTH ( [Date] )
)

 

 

  • Hi tebtim19 ,

    I use the following formula to calculate the employees turnover rate for each month.

    Employees who left = 
    CALCULATE(
        COUNT(Employees[Employee]),
        FILTER(
            Employees,
            MONTH(Employees[End Date]) = MONTH(MAX(Dates[Date]))
            && YEAR(Employees[End Date]) = YEAR(MAX(Dates[Date]))
        )
    )
    Employees at the end = 
    CALCULATE(
        COUNT(Employees[Employee]),
        FILTER(
            Employees,
            OR(
                ISBLANK(Employees[End Date]), 
                Employees[End Date] > MAX(Dates[Date])
            )
            && Employees[Start Date] <= MAX(Dates[Date])
        )
    )
    Employees at the beggining = 
    CALCULATE(
        COUNT(Employees[Employee]),
        FILTER(
            Employees,
            Employees[Start Date] <= MAX(Dates[Date])
        )
    )
    Employee Turnover Rate = 
    COALESCE(
        DIVIDE(
            [Employees who left],
            ( [Employees at the beggining] + [Employees at the end] )/2 
        ),
        0
    )

     

    If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.

    Best Regards,
    Winniz

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

2 Replies

  • v-kkf-msft's avatar
    v-kkf-msft
    Icon for Community Support rankCommunity Support

    Hi tebtim19 ,

    Can you provide more sample data and the output results you want?

     

    Best Regards,
    Winniz

  • v-kkf-msft's avatar
    v-kkf-msft
    Icon for Community Support rankCommunity Support

    Hi tebtim19 ,

    I use the following formula to calculate the employees turnover rate for each month.

    Employees who left = 
    CALCULATE(
        COUNT(Employees[Employee]),
        FILTER(
            Employees,
            MONTH(Employees[End Date]) = MONTH(MAX(Dates[Date]))
            && YEAR(Employees[End Date]) = YEAR(MAX(Dates[Date]))
        )
    )
    Employees at the end = 
    CALCULATE(
        COUNT(Employees[Employee]),
        FILTER(
            Employees,
            OR(
                ISBLANK(Employees[End Date]), 
                Employees[End Date] > MAX(Dates[Date])
            )
            && Employees[Start Date] <= MAX(Dates[Date])
        )
    )
    Employees at the beggining = 
    CALCULATE(
        COUNT(Employees[Employee]),
        FILTER(
            Employees,
            Employees[Start Date] <= MAX(Dates[Date])
        )
    )
    Employee Turnover Rate = 
    COALESCE(
        DIVIDE(
            [Employees who left],
            ( [Employees at the beggining] + [Employees at the end] )/2 
        ),
        0
    )

     

    If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.

    Best Regards,
    Winniz

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.