cancel
Showing results for
Search instead for
Did you mean:

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

Anonymous
Not applicable

## Annual Attrition% Calculation

Hi All,

I wanted to calculate Annulised Attrition% as mentioned below:

Here are the excel formula's used to arrive the % and numbers.

Annualised Attrition% : (E5/MONTH(A5)*12)/((F4+F4)/2)

YTD Leavers                 : B5, E5+B6, …..

Headcount                  : COUNTA(MDB!A:A)-1-COUNTIF(MDB!B:B,">="&A4)-COUNTIF(MDB!\$C:\$C,"<"&A4)

I am able to create Headcount and YTD Leavers measures as given below:

Headcount = [Total Count - ALL] - 1 - [Total Join - After] - ([Total Left before] - [Total Left])
YTD = TOTALYTD([Total Left],'Date'[Date])
However headcount numbers are not matching with the excel results and unable to get Annualised Attrition %.

Any help on this is much appreciated.

Regards,
Pavan
5 REPLIES 5
Community Support

Hi @Anonymous ,

I expanded each item of HeadCount and got the following results.

[Total Count - ALL] should be 1935. An extra line was added in Excel.

Another problem lies in [Total Join-After], I want to know what is the logic of this.

Best Regards,

Stephen Tao

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Anonymous
Not applicable

The total count in excel, it is taking header as well, hence we used -1 to get 1935.

Total Join After is the count of new joiners after the month given on the left side of the table.

Hope this clarified your query.

Regards,

Pavan

Community Support

Hi @Anonymous ,

Then there is no need to subtract one in pbix, because it doesn't count the header.

It should be like this

``````Headcount =
[Total Count - ALL] - [Total Join - After] - ([Total Left before] - [Total Left])``````

MAX('Date'[Date]) in Total Join-After returns the largest day of the currently selected month. as the picture shows. So remove the equal sign in Total Join-After.

``````Total Join - After =
CALCULATE ( [Count], FILTER ( ALL ( 'Date' ), 'Date'[Date] > MAX('Date'[Date])))``````

The number of newly-added employees after December 31, 2020 should be 0, so I think it may be that the formula in your Excel is wrong. 186 should be the number of new employees joining after November 30, 2020.

Hope my explanation can help you.

Best Regards,

Stephen Tao

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Anonymous
Not applicable

I would like to know how can we achieve the annualised attrition % as mentioned in the excel with the existing data.

Regards,

Pavan

Anonymous
Not applicable

Hi All,

Does anyone got a chance to look into it and suggest.

Regards,

Pavan

## Helpful resources

Announcements

#### Power BI Monthly Update - November 2023

Check out the November 2023 Power BI update to learn about new features.

#### Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

#### The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors