Forum Discussion
Employee Turnover
Hi Anonymous,
Based on my test, you could refer to below steps:
Create 4 measures:
Monthly Beginning Headcount = CALCULATE(COUNT(Table1[Member]),FILTER('Table1','Table1'[Hire data]<=MIN('Calender'[Start Date])||'Table1'[Last Employment Date]=BLANK()||'Table1'[Last Employment Date]>=MIN('Calender'[Start Date])))Monthly End Headcount = CALCULATE(COUNT(Table1[Member]),FILTER('Table1','Table1'[Hire data]<=MAX('Table1'[Last Employment Date])||Table1[Last Employment Date]=BLANK()||Table1[Last Employment Date]>MAX(Calender[Period End Date])))Monthly Turnover Headcount = CALCULATE(COUNT(Table1[Member]),FILTER('Table1','Table1'[Last Employment Date]>=MAX('Calender'[Start Date])&&Table1[Last Employment Date]<=MAX('Calender'[Period End Date])))Monthly Turnover Rate = [Monthly Turnover Headcount]/(([Monthly Beginning Headcount]+[Monthly End Headcount])/2)
Result:
You can also download the PBIX file to have a view.
https://www.dropbox.com/s/9av4z7i75quloo0/Employee%20Turnover.pbix?dl=0
Regards,
Daniel He
Thansk for sharing the formula. However I have to change them slightly (change || to && and brackets etc.) to work for our case. Our sample data is same as yours for calendar and data table.
Below are the details.
Sample Data
https://cdn1.imggmi.com/uploads/2019/5/15/325143b2bffc52e574ee3c097a8d2351-full.png
Code to generate Calendar Table
- Anonymous3 years agoNot applicable
Hi Naeem,
Thank you so much for sharing. It worked so well.
I would like to calculate cumulated turnover rate too. Could you please guide me with that? I got wrong subtotal from Power BI.