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

Calculate month-wise attrition % with different formula for each month

Hi, 

 

I need to calculate and show month wise people attrition % (annualised) using below formula for each month - 

 

Attrition % for Jan = (Termination count for Jan / People count as in month of Jan) x 12

Attrition % for Feb = (Termination count for Jan + Termination count for Feb)/(Avg of people count for Jan and Feb) x 12 / 2

Attrition % for Mar = (Termination count for Jan + Termination count for Feb + term count for Mar)/(Avg of people count for Jan, Feb & Mar) x 12 / 3

 

and so on for each subsequent month.

 

How can I create a measure to do this or will there be any other way to do this??

 

Thanks in advance.

3 REPLIES 3
kcantor
Community Champion
Community Champion

@Anonymous 

You should have no problems transitioning your calculations to dax but we here in the forum will need more information in order to provide assistance.

Are your calculations showing actual column names? Do you have a date table? 

 

As an example, assuming you are showing actual column names, your measure could be modified into dax:

Attrition % for Jan = DIVIDE([Termination count for Jan], [People count as in month of Jan]) * 12

 

That calculation would assume you have the necessary measure. If your termination count rolls up, you would need to create the sum for that calculation and use the sum measure in place of "Termination Count for Jan" in the above sample measure. If you can provide sample data including cleansed information but using actual table and column names, we could provide help that could be more specific(aka copy paste measures with the dax explained). If you can share a file through dropbox it would be even easier to help you.





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

Proud to be a Super User!




Anonymous
Not applicable

Wow. Great to see such quick responses. I am new in the Power BI world hence wasnt sure how its gonna work here. Sharing link to the file which has some sample data.

 

https://www.dropbox.com/s/77c625yfol2w47r/Sample%20data%20attrition.xlsx?dl=0

vjnvinod
Impactful Individual
Impactful Individual

@Anonymous 

 

can you show the sample data please?

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.