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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
unnijoy
Post Partisan
Post Partisan

Attrition % based on Distinct HC

MonthCityRoll CatRoll TypeGradeTer-typeTer #HC#UID
11-03-2020CsandAdminOp-AdminG11Voluntary22343901CsandAdminOp-AdminG11
11-03-2020CsandAdminOp-AdminG2Involuntary12243901CsandAdminOp-AdminG2
11-03-2020CsandAdminOp-AdminG11Involuntary42343901CsandAdminOp-AdminG11
11-03-2020CsandAdminOp-AdminG2Voluntary72243901CsandAdminOp-AdminG2

 

Above is my sample DB. I need to calaculate the attrition % from the above table. for this i need to take the HC based on the Distinct UID. So it should worke like Sum(Ter#)/(22+23)

Here we are getting 22 and 23 based on the distinct of UID.

Please help me to get this.

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@unnijoy , Create a table like

divide(sum(Table[Ter #]), sumx(Values(Table[UID]), calculate(max(Table[ HC#]))))

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

3 REPLIES 3
amitchandak
Super User
Super User

@unnijoy , Create a table like

divide(sum(Table[Ter #]), sumx(Values(Table[UID]), calculate(max(Table[ HC#]))))

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Hi @amitchandak ,

 

The formula is workinfg fine.

 

When i use the same formula for finding the Involuntary or voluntary attrition i find a small mismatch, The issue is that when we use the above formula its is taking the correct Termination Numbers. Bust insted of taking the Over all HC it is taking only the HC based on Voluntarty or Involuntary. As per the above data 

Voluntary % = (2+7)/(22+23).

But cureently its is taking as (2+7)/Hc of Next to Voluntary attrition)

How can i get the Overall HC as denominator.

Voluntary 

Hi @amitchandak ,

 

A help on the above request will be great. Waiting for your reply.

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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