Forum Discussion
Unable to complete %Formula
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
- Anonymous4 years agoNot applicable
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 TeamIf 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
- AjayReddy4 years agoRegular Visitor
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)