Hi all,
I'm attempting to do a simple 12-month turnover rate:
Employee Separations / Avg Employee Headcount over 12 months
However, the dataset I have has employees appearing multiple times as they are split over multiple roles. Initially, to overcome this issue for getting my rolling headcount, I was able to create a measure using DISTINCTCOUNT() on employee IDs with Hire Date and Separation Date filters over my rolling 24-month report:
This works fine, as I see the total headcount as of Year/Month/Day as I drill through. However, trying to get the rolling average of this is proving difficult. If I set up a Matrix in monthly view, it may be easier to understand...
So, here's my headcount figures showing correctly with the aforementioned Measure. I need to get the average of the period (in red) rolling so that it updates each year, month, etc. in the reporting and allows me to calculate my annualised attrition (turnover) rate.
Any ideas much appreciated.
I'm attempting to do a simple 12-month turnover rate:
Employee Separations / Avg Employee Headcount over 12 months
However, the dataset I have has employees appearing multiple times as they are split over multiple roles. Initially, to overcome this issue for getting my rolling headcount, I was able to create a measure using DISTINCTCOUNT() on employee IDs with Hire Date and Separation Date filters over my rolling 24-month report:
Code:
Active Headcount =
CALCULATE (
DISTINCTCOUNT( EmpData[Unique ID] ),
FILTER (
ALLSELECTED ( EmpData ),
EmpData[Hire date] < LASTDATE ( 'Calendar'[Dates] )
&& EmpData[Separation process month] > LASTDATE ( 'Calendar'[Dates] )
|| EmpData[Hire date] < LASTDATE ( 'Calendar'[Dates] )
&& ISBLANK ( EmpData[Separation process month] )
)
)
This works fine, as I see the total headcount as of Year/Month/Day as I drill through. However, trying to get the rolling average of this is proving difficult. If I set up a Matrix in monthly view, it may be easier to understand...
So, here's my headcount figures showing correctly with the aforementioned Measure. I need to get the average of the period (in red) rolling so that it updates each year, month, etc. in the reporting and allows me to calculate my annualised attrition (turnover) rate.
Any ideas much appreciated.