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
Anonymous
Not applicable

Employee Turnover - YTD and SPLY

Hi all,

 

Hoping someone in the community will be able to help me! I have only just started using PowerBI in the last 6 months so still getting my head around everything.

 

I am currently trying to create a YTD and SPLY Turnover Line Graph by month. The issue I am having is calculating the average headcount. 

 

The below graph shows the YTD Turnover by team (x axis). 

 

Equation for headcount average currently - 2017 YTD Headcount = COUNT('2017 Headcount'[Division Name])/2

 

Employee Turnover Example.PNG

 

What I am trying to achieve is something like the below that shows it by month:

 

Turnover by month.PNG

 

However, I am completeley stumped as to how to get the rolling count for example January would be number of leavers/headcount for month then from Feb it would be accumulative whereby the equation would be jan leavers + feb leavers / average headcount for Jan and Feb.

 

Any suggestions on how I can tackle this one would be greatly appreciated. Each of my data sources are line by line of employee names for both leavers and headcount. 

 

Happy to provide more information if you need 🙂

1 ACCEPTED SOLUTION
v-chuncz-msft
Community Support
Community Support

@Anonymous,

 

You may view the code generated by Quick measure Running total and Rolling average.

Community Support Team _ Sam Zha
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

1 REPLY 1
v-chuncz-msft
Community Support
Community Support

@Anonymous,

 

You may view the code generated by Quick measure Running total and Rolling average.

Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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.