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
Anonymous
Not applicable

How to calculate the YTD attrition

Dear Community: We have "Employee Status" whether they are active or terminated in one column and we have "Employment Details Termination Date" in another. Please help me to calculate the YTD attrition %. 

Global IDEmployee StatusFourth LevelCountry/RegionEmployment Details Termination Date
1ActiveCompositingIndiaSunday, May 8, 2022
2ActiveCompositingIndiaFriday, April 15, 2022
3ActiveAnimationIndiaSunday, June 19, 2022
4ActiveTech AnimIndiaSaturday, April 9, 2022
5TerminatedCompositingIndiaSunday, April 24, 2022
6TerminatedFXIndiaSunday, May 1, 2022
7TerminatedCompositingIndiaFriday, April 15, 2022
8TerminatedAssetsIndiaFriday, April 22, 2022
9TerminatedAssetsIndiaSunday, April 10, 2022
10TerminatedFXIndiaFriday, April 15, 2022
11TerminatedLightingIndiaSaturday, May 7, 2022
12TerminatedAnimationIndiaSaturday, May 28, 2022
13TerminatedCompositingIndiaSaturday, May 21, 2022
14TerminatedPaint PrepIndiaTuesday, April 19, 2022
15TerminatedCompositingIndiaSunday, May 8, 2022
16TerminatedPaint PrepIndiaThursday, June 16, 2022
17TerminatedAssetsIndiaSaturday, April 23, 2022
18TerminatedAnimationIndiaMonday, May 9, 2022
19TerminatedPaint PrepIndiaSaturday, May 28, 2022
20TerminatedAnimationIndiaMonday, May 2, 2022
21TerminatedAnimationIndiaTuesday, May 17, 2022
22TerminatedAnimationIndiaWednesday, June 8, 2022
23TerminatedCompositingIndiaSaturday, April 23, 2022
24ActiveFXIndiaSunday, May 1, 2022
25ActiveAnimationIndiaMonday, April 18, 2022
26Active3D DMPIndiaSaturday, May 21, 2022
27ActivePaint PrepIndiaThursday, April 21, 2022
28ActiveCompositingIndiaSaturday, May 28, 2022
29ActiveRotoscopeIndiaSunday, April 17, 2022
30ActiveAnimationIndiaSaturday, June 4, 2022
31ActiveCompositingIndiaTuesday, May 31, 2022
32ActiveAssetsIndiaSunday, May 1, 2022
33ActiveRotoscopeIndiaTuesday, April 5, 2022
34ActiveCompositingIndiaSaturday, April 23, 2022

Any help will be much appreciated. Thanks in advance!

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Anonymous ,

 

I think you can try this code.

YTD attrition % =
VAR _TOTAL =
    CALCULATE ( COUNT ( 'Table'[Global ID] ), ALL ( 'Table' ) )
VAR _Terminated =
    CALCULATE (
        COUNT ( 'Table'[Global ID] ),
        FILTER ( ALL ( 'Table' ), 'Table'[Employee Status] = "Terminated" )
    )
RETURN
    DIVIDE ( _Terminated, _TOTAL )

Result is as below.

RicoZhou_0-1649402922859.png

 

Best Regards,
Rico Zhou

 

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

 

View solution in original post

1 REPLY 1
Anonymous
Not applicable

Hi @Anonymous ,

 

I think you can try this code.

YTD attrition % =
VAR _TOTAL =
    CALCULATE ( COUNT ( 'Table'[Global ID] ), ALL ( 'Table' ) )
VAR _Terminated =
    CALCULATE (
        COUNT ( 'Table'[Global ID] ),
        FILTER ( ALL ( 'Table' ), 'Table'[Employee Status] = "Terminated" )
    )
RETURN
    DIVIDE ( _Terminated, _TOTAL )

Result is as below.

RicoZhou_0-1649402922859.png

 

Best Regards,
Rico Zhou

 

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

 

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.