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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
Brianoreilly
Helper II
Helper II

Calculate Employee Retention

Hi Folks, 

 

Our company uses non standard retention calcs. 

 

Work on the premise of: Cumulative(Number of leavers) divided by the Average Monthly Headcount for the selected periods.

 

I am nearly there with the calcs, on a sample dataset, just need three more calcs as stated in the excel Orange. 

 

Hoping someone can help. 

 

Link to WIP files attached.

 

Excel

 

PBIX

 

Thanks. 

Hr Sample Power BI.JPG

 

 

 

4 REPLIES 4
v-frfei-msft
Community Support
Community Support

Hi @Brianoreilly,

 

Create the measures as below.

 

Cumulative Headcount Rolling = CALCULATE(SUM(Table1[Headcount at Period End]),FILTER(ALL(Table1),Table1[Fiscal Month No]<=MAX(Table1[Fiscal Month No])))
Cumulative Headcount Rolling ave = [Cumulative Headcount Rolling]/MAX(Table1[Fiscal Month No])
Cumulative new leavers = CALCULATE(SUM(Table1[New Leavers in Month]),FILTER(ALL(Table1),Table1[Fiscal Month No]<=MAX(Table1[Fiscal Month No])))

Capture.PNG

 

For more details, please check the pbix as attached.

 

Regards,

Frank

Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the others find it more quickly.

Hi @v-frfei-msft

 

Could you look at my PBIX file attached earlier?

 

I am using measures, so cannot do as you have stated. 

 

Any help appreciated.

 

Thanks, 

Hi @Brianoreilly,

 

Could you please share the file to me again?

 

Regards,

Frank

Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the others find it more quickly.

Hi @Brianoreilly,

 

I cannot download your files by the links that you shared. Could you please share them again?

 

Regards,

Frank

Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the others find it more quickly.

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors