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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

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
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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