Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
Annualized Attrition = (Total YTD Exits/YTD Average Headcount) * (12/Number of months passed)
Solved! Go to Solution.
First you need to calculate Active Headcounts for each month/date. That means if person left/hire during that time, he must be included/excluded from active head counts. There should be "Leaving Date" , "Hiring Date" in your data.
Create a YTD measure of based on above.
Create a measure that will calculate exit only.
The architecture will include 1-active relationship between Date and Employee table. Lets say it is connected with Hiring Date.
Then there will be a inactive relationship between Date and Leaving date to calculate exits based on this relationship.
In below example there is a Column active and it will hold "1" for all the employees and "Left" column where employees left or Leaving date is not null
_Hire = CALCULATE(SUM(Employee[Active]),USERELATIONSHIP(PBI_DimDate[DateSecAlternateKey],Employee[HiringDate]))_Hire YTD = CALCULATE([_Hire],DATESYTD(PBI_DimDate[DateSecAlternateKey]))_Left = CALCULATE(SUM(Employee[Left]),USERELATIONSHIP(PBI_DimDate[DateSecAlternateKey],Employee[LeavingDate]))
_ActiveAll =
Var dt = Max(PBI_DimDate[DateSecAlternateKey])
RETURN
CALCULATE(COUNTROWS(Employee),FILTER(ALLEXCEPT(Employee,Employee[CountryCode]),(Employee[HiringDate]<=dt && (Employee[LeavingDate]>=dt || ISBLANK(Employee[LeavingDate])=TRUE()) )))
Then create your above formula using above measures..
Annualized Attrition = (Total YTD Exits/YTD Average Headcount) * (12/Number of months passed)
Proud to be a Super User!
Hi @Abdult ,
Whether the advice given by @FarhanAhmed has solved your confusion, if the problem has been solved you can mark the reply for the standard answer to help the other members find it more quickly. If not, please point it out.
Looking forward to your feedback.
Best Regards,
Henry
First you need to calculate Active Headcounts for each month/date. That means if person left/hire during that time, he must be included/excluded from active head counts. There should be "Leaving Date" , "Hiring Date" in your data.
Create a YTD measure of based on above.
Create a measure that will calculate exit only.
The architecture will include 1-active relationship between Date and Employee table. Lets say it is connected with Hiring Date.
Then there will be a inactive relationship between Date and Leaving date to calculate exits based on this relationship.
In below example there is a Column active and it will hold "1" for all the employees and "Left" column where employees left or Leaving date is not null
_Hire = CALCULATE(SUM(Employee[Active]),USERELATIONSHIP(PBI_DimDate[DateSecAlternateKey],Employee[HiringDate]))_Hire YTD = CALCULATE([_Hire],DATESYTD(PBI_DimDate[DateSecAlternateKey]))_Left = CALCULATE(SUM(Employee[Left]),USERELATIONSHIP(PBI_DimDate[DateSecAlternateKey],Employee[LeavingDate]))
_ActiveAll =
Var dt = Max(PBI_DimDate[DateSecAlternateKey])
RETURN
CALCULATE(COUNTROWS(Employee),FILTER(ALLEXCEPT(Employee,Employee[CountryCode]),(Employee[HiringDate]<=dt && (Employee[LeavingDate]>=dt || ISBLANK(Employee[LeavingDate])=TRUE()) )))
Then create your above formula using above measures..
Annualized Attrition = (Total YTD Exits/YTD Average Headcount) * (12/Number of months passed)
Proud to be a Super User!
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 1 |