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
Brianoreilly
Helper II
Helper II

Employee Attrition Non Standard Calculation. Need Help!

Hi Folks, 

 

I have a problem calculating Employee Attrition and retention in my Org. 

Reasoning being, that it is a non standard way. 

 

I currently have a WB that is calculating the standard way.

I need a number of measures to try and calculate it via our methodology. 

1: Count of Months between To & From Slicer. 

2: Cumulative of Month End Headcount Dependent on To & From Slicer. 

3: Cumulative of Month End Leavers Dependent on To & From Slicer. 

4: Average ME Headcount : Measure 1 divided by Measure 2. 

5: Total Attrition %: Measure 3 Divided by 4. 

 

Find PBIX of Current and Excel of Idea scenario attached.

One Drive

 

 

Appreciate any help. 

 

 

 

Thanks!

Brian. 

5 REPLIES 5
v-yulgu-msft
Employee
Employee

Hi @Brianoreilly,

 

After testing with your sample file, I have worked outsome of your requirements.

 

But you need an extra calendar table which is unrelated to the Employee Table. Then, add date field from the second calendar table into slicer.

count (month) =
DATEDIFF ( MIN ( 'Calendar2'[Date] ), MIN ( 'Calendar'[Date] ), MONTH ) + 1

Cumulative Leavers End Headcount =
SUMX (
    FILTER (
        ALLSELECTED ( 'Calendar' ),
        'Calendar'[Year Month] <= MIN ( 'Calendar'[Year Month] )
    ),
    [Total leavers]
)

Best regards,

Yuliana Gu

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

Hi Yuliana, 

 

I can't seem to get this to work. 

 

Could you send me on your solution file. 

 

 

Would be really appreciated. 

 

Thanks. 

Brian

Brianoreilly
Helper II
Helper II

@Greg_Deckler@Zubair_Muhammad@Seth_C_Bauer is there any chance, you would know of a quick fix. 

 

So close, I just cannot get the dang thing to work. 

 

Thanks, 

 

@Brianoreilly I just downloaded your report, seems like you have done lot of work, which items are still outstanding and/or need assistance?



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Hi, 

 

And thanks for your time!

 

Here is what I need. 

 

I need a number of measures to try and calculate it via our methodology. 

Measure.

1: Count of Months between To & From Slicer. 

2: Cumulative of Month End Headcount Dependent on To & From Slicer. 

3: Cumulative of Month End Leavers Dependent on To & From Slicer. 

4: Average ME Headcount : Measure 1 divided by Measure 2. 

5: Total Attrition %: Measure 3 Divided by 4. 

 

The main thing I can't get working is the cumulative figures. 

I can get the cumulative to work from the begging of the dataset to the limit on the slicer (max date on slicer.)

For instance I can make a measure that cumulative sums from start of data set to 30 June 2016 for instance.  

But cannot get it working for a minimum date. For instance 15 March 2015 to 31 July 2016. 

 

Hope this makes sense.

 

Thanks, 

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.