Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hi,
I am trying to prepare a attrition dashboard, I am unable to calculate the below requirement in power bi
Have 2 datasets linked by independent date table
1 HC file
2 Attrition file
I am able to calculate the monthly attrition which attrition/hc for that month
For the annualized attrition the formula I need to use is: (Sum of monthly attrition rate * 12)/month number (if its mar it should be 3)
Please help with a solution, provided an example table below
| Jan | Feb | Mar | |
| Attrition | 10 | 8 | 9 |
| HC | 100 | 105 | 100 |
| Monthly Attrition | 10% | 8% | 9% |
| Annualized Attrition | 120% | 106% | 106% |
Thanks,
AJ
@AjayReddy , Try like
AverageX(Values('Date'[Month Year]), [Monthly Attrition]*12)
or
SumX(Values('Date'[Month Year]), [Monthly Attrition]*12)/12
Hi Amit,
Thanks for the response, I am getting the same values as monthly attrition %, what should be here SumX(Values('Date'[Month Year]), month number?
Thanks,
AJ
Hi @AjayReddy ,
Not sure what the model looks like.
Please try these:
Table =
SUMMARIZE (
'Calendar',
'Calendar'[Month],
"attrition",
CALCULATE (
SUM ( Attrition[Attrition] ),
'Calendar'[Month] = MAX ( 'Calendar'[Month] )
),
"hc", CALCULATE ( SUM ( 'HC'[HC] ), 'Calendar'[Month] = MAX ( 'Calendar'[Month] ) ),
"monthly attrition",
DIVIDE (
CALCULATE (
SUM ( Attrition[Attrition] ),
'Calendar'[Month] = MAX ( 'Calendar'[Month] )
),
CALCULATE ( SUM ( 'HC'[HC] ), 'Calendar'[Month] = MAX ( 'Calendar'[Month] ) )
)
)annualized attrition =
VAR _month = 'Table'[Month]
VAR _sum =
CALCULATE (
SUM ( 'Table'[monthly attrition] ),
FILTER ( 'Table', 'Table'[Month] <= EARLIER ( 'Table'[Month] ) )
) * 12
VAR _result =
DIVIDE ( _sum, _month )
RETURN
_result
The PBIX file is attached for reference.
Best Regards,
Gao
Community Support Team
If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!
How to get your questions answered quickly -- How to provide sample data
Hey,
Thank you for the response,
I am not able to perform the below step maybe because its a measure
SUM ( Attrition[Attrition] )
Just to explain the model a little more, have 2 files mentioned below
1) HeadCount file with all employee names month on month (names can be repeated if the empoyee does not attrite to the next month) stacked on top of each other
2) YTD attrition file
Prepared a date table with dates till end of the year. Date table is linked to the HC data on the HC report date and to the attrition table to the separation date
Hi @AjayReddy ,
Please try to replace this formula with that measure.
If this does not work, please consider providing a PBIX file that does not contain private data.
How to provide sample data in the Power BI Forum
Best Regards,
Gao
Community Support Team
If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!
How to get your questions answered quickly -- How to provide sample data
Hey,
Did you miss the formula cause I do not see it
"Please try to replace this formula with that measure."
Thanks,
AJ
Hi AJ,
Sorry I didn't explain clear, I meant to use measure [Attrition] to replace SUM ( Attrition[Attrition] ) in this formula.
Table =
SUMMARIZE (
'Calendar',
'Calendar'[Month],
"attrition",
CALCULATE (
[Attrition],
'Calendar'[Month] = MAX ( 'Calendar'[Month] )
),
"hc", CALCULATE ( SUM ( 'HC'[HC] ), 'Calendar'[Month] = MAX ( 'Calendar'[Month] ) ),
"monthly attrition",
DIVIDE (
CALCULATE (
[Attrition],
'Calendar'[Month] = MAX ( 'Calendar'[Month] )
),
CALCULATE ( SUM ( 'HC'[HC] ), 'Calendar'[Month] = MAX ( 'Calendar'[Month] ) )
)
)
If this does not work, please consider providing a PBIX file that does not contain private data.
How to provide sample data in the Power BI Forum
Best Regards,
Gao
Community Support Team
If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!
How to get your questions answered quickly -- How to provide sample data
Thank you for the quick response, Below is the error I am getting
I am attaching a sample file with fake data for your understanding
HC
| Report Date | Employee Name |
| 31-Jan-22 | AJ |
| 31-Jan-22 | VJ |
| 31-Jan-22 | RJ |
| 31-Jan-22 | abcd |
| 31-Jan-22 | AJ |
| 31-Jan-22 | VJ |
| 31-Jan-22 | RJ |
| 31-Jan-22 | abcd |
| 31-Jan-22 | AJ |
| 31-Jan-22 | VJ |
| 31-Jan-22 | RJ |
| 31-Jan-22 | abcd |
| 31-Jan-22 | AJ |
| 31-Jan-22 | VJ |
| 31-Jan-22 | RJ |
| 31-Jan-22 | abcd |
| 31-Jan-22 | AJ |
| 31-Jan-22 | VJ |
| 31-Jan-22 | RJ |
| 31-Jan-22 | abcd |
| 31-Jan-22 | AJ |
| 31-Jan-22 | VJ |
| 31-Jan-22 | RJ |
| 31-Jan-22 | abcd |
| 31-Jan-22 | AJ |
| 31-Jan-22 | VJ |
| 31-Jan-22 | RJ |
| 31-Jan-22 | abcd |
| 31-Jan-22 | AJ |
| 28-Feb-22 | VJ |
| 28-Feb-22 | RJ |
| 28-Feb-22 | abcd |
| 28-Feb-22 | AJ |
| 28-Feb-22 | VJ |
| 28-Feb-22 | RJ |
| 28-Feb-22 | abcd |
| 28-Feb-22 | AJ |
| 28-Feb-22 | VJ |
| 28-Feb-22 | RJ |
| 28-Feb-22 | abcd |
| 28-Feb-22 | AJ |
| 28-Feb-22 | VJ |
| 28-Feb-22 | RJ |
| 28-Feb-22 | abcd |
| 28-Feb-22 | AJ |
| 28-Feb-22 | VJ |
| 28-Feb-22 | RJ |
| 28-Feb-22 | abcd |
| 28-Feb-22 | AJ |
| 28-Feb-22 | VJ |
| 28-Feb-22 | RJ |
| 28-Feb-22 | abcd |
| 28-Feb-22 | AJ |
| 28-Feb-22 | VJ |
| 28-Feb-22 | RJ |
| 28-Feb-22 | abcd |
| 28-Feb-22 | AJ |
| 28-Feb-22 | VJ |
| 28-Feb-22 | RJ |
| 28-Feb-22 | abcd |
| 28-Feb-22 | AJ |
| 28-Feb-22 | VJ |
| 28-Feb-22 | RJ |
| 31-Mar-22 | abcd |
| 31-Mar-22 | AJ |
| 31-Mar-22 | VJ |
| 31-Mar-22 | RJ |
| 31-Mar-22 | abcd |
| 31-Mar-22 | AJ |
| 31-Mar-22 | VJ |
| 31-Mar-22 | RJ |
| 31-Mar-22 | abcd |
| 31-Mar-22 | AJ |
| 31-Mar-22 | VJ |
| 31-Mar-22 | RJ |
| 31-Mar-22 | abcd |
| 31-Mar-22 | AJ |
| 31-Mar-22 | VJ |
| 31-Mar-22 | RJ |
| 31-Mar-22 | abcd |
| 31-Mar-22 | AJ |
| 31-Mar-22 | VJ |
| 31-Mar-22 | RJ |
| 31-Mar-22 | abcd |
| 31-Mar-22 | AJ |
| 31-Mar-22 | VJ |
| 31-Mar-22 | RJ |
| 31-Mar-22 | abcd |
| 31-Mar-22 | AJ |
| 31-Mar-22 | VJ |
| 31-Mar-22 | RJ |
| 31-Mar-22 | abcd |
| 31-Mar-22 | AJ |
| 31-Mar-22 | VJ |
| 31-Mar-22 | RJ |
| 31-Mar-22 | abcd |
| 31-Mar-22 | AJ |
| 31-Mar-22 | VJ |
| 31-Mar-22 | RJ |
| 31-Mar-22 | abcd |
| 31-Mar-22 | AJ |
| 30-Apr-22 | VJ |
| 30-Apr-22 | RJ |
| 30-Apr-22 | abcd |
| 30-Apr-22 | AJ |
| 30-Apr-22 | VJ |
| 30-Apr-22 | RJ |
| 30-Apr-22 | abcd |
| 30-Apr-22 | AJ |
| 30-Apr-22 | VJ |
| 30-Apr-22 | RJ |
| 30-Apr-22 | abcd |
| 30-Apr-22 | AJ |
| 30-Apr-22 | VJ |
| 30-Apr-22 | RJ |
| 30-Apr-22 | abcd |
| 30-Apr-22 | AJ |
| 30-Apr-22 | VJ |
| 30-Apr-22 | RJ |
| 30-Apr-22 | abcd |
| 30-Apr-22 | AJ |
| 30-Apr-22 | VJ |
| 30-Apr-22 | RJ |
| 30-Apr-22 | abcd |
| 30-Apr-22 | AJ |
| 30-Apr-22 | VJ |
| 30-Apr-22 | RJ |
| 30-Apr-22 | abcd |
| 30-Apr-22 | AJ |
| 30-Apr-22 | VJ |
| 30-Apr-22 | RJ |
| 30-Apr-22 | abcd |
| 30-Apr-22 | AJ |
| 30-Apr-22 | VJ |
| 30-Apr-22 | RJ |
Attrition Table
| Employee Name | Separation Date |
| CJ | 2-Jan-22 |
| EK | 3-Feb-22 |
| LK | 4-Mar-22 |
| OK | 5-Mar-22 |
| DK | 6-Feb-22 |
| TO | 7-Jan-22 |
| RO | 8-Apr-22 |
| EP | 9-Apr-22 |
| LP | 10-Mar-22 |
| RP | 11-Feb-22 |
| AK | 12-Jan-22 |
| TK | 13-Apr-22 |
| LM | 14-Apr-22 |
Output Required
| Month | HC | Attrition | Monthly Attrition | Month | Annualized Attrition % |
| Jan | 29 | 3 | 10% | 1 | 124% |
| Feb | 34 | 3 | 9% | 2 | 115% |
| Mar | 38 | 3 | 8% | 3 | 108% |
| Apr | 34 | 4 | 12% | 4 | 116% |
Formula Used for Annualized Attrition
=(SUM(D$2:D2*12)/E2)
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 39 | |
| 37 | |
| 33 | |
| 33 | |
| 29 |
| User | Count |
|---|---|
| 134 | |
| 96 | |
| 78 | |
| 67 | |
| 65 |