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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
Anonymous
Not applicable

How To Calculate Annual Retention Rate Month-Over-Month

Hello All,

 

I've hit a bit of a roadblock with this one, and I'm hoping the community can help me resolve it. I'm still a fairly new PBI user, so it's likely I'm missing something obvious.

 

The goal: to calculate an annual retention rate trending month-over-month. 

Retention Calculation: (Headcount at end of reporting period) / (Headcount at beginning of reporting period); New Hires are NOT counted in this calculation. We want to use the headcount at the beginning of the year (as of 1.1.24) and the ending headcounts at the end of every month (1.31, 2.28, 3.31).  

 

I was able to create a formula that shows me the monthly retention rates, but it's only based on data for that particular month. I'm attaching a PBIX with sample data, but to give an idea of what we're looking for, here are some example numbers:

 

BOY Headcount: 2500

January: Ending Headcount of 2480

February: Ending Headcount of 2466

March: Ending Headcount of 2440

 

My calculation is using the beginning and ending headcounts of each month, rather than using the BOY Headcount I want to use, so it looks like this:

 

MonthBeginning HCEnding HCRetention Rate

January

2500248099.2%
February2480246699.4%
March2466244098.9%

 

However, that's not what we want. What we want to see is this:

 

MonthBeginning HCEnding HCRetention Rate

January

2500248099.2%
February2500246698.6%
March2500244097.6%

 

 What should be happening is the retention rate either stays the same or goes down - it should never go up. We're only calculating based on the number of people with the organization at the beginning of the year, and we're not counting the people (new hires) who join the organization during the year. 

 

You'll see in my PBIX file that I was able to calculate the BOY HC, but my EOY and Retention formulas only work on January and are not working in Feb or March. Any thoughts on how to fix this?

 

Please let me know if additional information is needed. Thanks!

 

PBIX Example File 

1 ACCEPTED SOLUTION
Wilson_
Super User
Super User

Hi Daniel,

 

Here's my updated pbix file.

 

This is what the table looks like now:

Wilson__0-1712374503876.png

 

The key changes I made were:

  • Creating a relationship between the calendar table and the All Data table
  • Replacing the month field in your table visual with the month field from the Calendar table
  • Slight tweaks to your measure

Since you said you are fairly new, I love recommending SQLBI's free courses whenever I can. They'll help set you up with a good foundation! 😄

 

----------------------------------
If this post helps, please consider accepting it as the solution to help other members find it quickly. Also, don't forget to hit that thumbs up and subscribe! (Oh, uh, wrong platform?)

 

P.S. Need a more in-depth consultation for your Power BI issue? Feel free to hire me on Upwork or DM me directly on here! I would love to clear up your Power BI headaches.




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





View solution in original post

3 REPLIES 3
Ashish_Mathur
Super User
Super User

Hi,

PBI file attached.

Hope this helps.

Ashish_Mathur_0-1712376684556.png

 


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
Wilson_
Super User
Super User

Hi Daniel,

 

Here's my updated pbix file.

 

This is what the table looks like now:

Wilson__0-1712374503876.png

 

The key changes I made were:

  • Creating a relationship between the calendar table and the All Data table
  • Replacing the month field in your table visual with the month field from the Calendar table
  • Slight tweaks to your measure

Since you said you are fairly new, I love recommending SQLBI's free courses whenever I can. They'll help set you up with a good foundation! 😄

 

----------------------------------
If this post helps, please consider accepting it as the solution to help other members find it quickly. Also, don't forget to hit that thumbs up and subscribe! (Oh, uh, wrong platform?)

 

P.S. Need a more in-depth consultation for your Power BI issue? Feel free to hire me on Upwork or DM me directly on here! I would love to clear up your Power BI headaches.




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





Anonymous
Not applicable

This worked perfectly - thank you for your help!

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.