Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
tebtim19
Helper IV
Helper IV

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. 

tebtim19_0-1615599391350.png

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

 

 

1 ACCEPTED SOLUTION
v-kkf-msft
Community Support
Community 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
)

 

image.png

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.

View solution in original post

2 REPLIES 2
v-kkf-msft
Community Support
Community 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
)

 

image.png

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.

v-kkf-msft
Community Support
Community Support

Hi @tebtim19 ,

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

 

Best Regards,
Winniz

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.