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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
SofG
Frequent Visitor

Employee turnover rolling 12

 

Hi,

 

I am trying to calcualte employee turnover rolling 12 and employee turnover last quarter.

 

I have used following caluculation for staff turnover. Does anyone know how I can adjust it/what I can add to create employee turnover rolling 12 and employee turnover last quarter?

 

Thanks! 

 

Count Started =
CALCULATE(
DISTINCTCOUNT('People Data'[Person CC Role]);
FILTER (
'People Data';
'People Data'[Correct Start date]>=MIN('Dynamic Calendar Table'[Date])
&& 'People Data'[Correct Start date]<=MAX( ('Dynamic Calendar Table'[Date])
)))
 
 
Count Ended =
CALCULATE(
DISTINCTCOUNT('People Data'[Person CC Role]);
FILTER (
'People Data';
'People Data'[Correct end date]>=MIN('Dynamic Calendar Table'[Date])
&& 'People Data'[Correct end date]<=MAX( ('Dynamic Calendar Table'[Date])
)))
 
 
MIN ENDED STARTED = MIN([Count Ended];[Count Started])
 
Contracts Start  =
CALCULATE (
DISTINCTCOUNT('People Data'[Person CC Role]);
FILTER (
'People Data';
'People Data'[Correct Start date]<MIN('Dynamic Calendar Table'[year])
&& 'People Data'[Correct end date]>=MIN( ('Dynamic Calendar Table'[year])
)))
 
Avg Contracts = ([Contracts Start]+[Contracts])/2
 
Contracts = 
CALCULATE (
DISTINCTCOUNT ('People Data'[Person CC Role 2]);
FILTER(
'People Data';
'People Data'[column Correct Start date]<=MAX('Dynamic Calendar Table'[Date])
&& OR('People Data'[column Correct end date]>MAX( ('Dynamic Calendar Table'[Date]));ISBLANK('People Data'[Employment end date]))
))
 
Staff Turnover Total = [MIN ENDED STARTED]/[Avg Contracts]

 

3 REPLIES 3
Icey
Community Support
Community Support

Hi @SofG ,

 

Maybe you can give me some sample data.

 

Best Regards,

Icey

SofG
Frequent Visitor

Hi Icey,

 

Here's some sample data: Sample

 

Thank you!

 

Kind regards,

SofG

Icey
Community Support
Community Support

Hi @SofG ,

 

As I tested, the data structure I got was not complete. Maybe you can refer to these articles or videos:

1. DAX for Power BI: 12 Month Rolling Average

2. Employee Turnover Dashboard – Power BI for HR

3. Rolling Employee Turnover by Fiscal Year

4. Calculating Employee Attrition Rate with DAX – Part 1

 

Best Regards,

Icey

 

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

Helpful resources

Announcements
PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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