Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
Hi all, I am trying to calculate Projected Attrtion Rate using the formula
Projected Attrition Rate = Cumulative Attrition Rate/# Cumulative Months in the Period * 12 months
i.e. : [(Jan+Feb+Mar)/3]*12 = [(0.61%+0.25%+0.8%)/3]*12
The Attrition Rate Overall use in the table is:
DIVIDE(COUNT('Headcount'[Attrition Date]), DISTINCTCOUNT('Headcount '[Emp No.]))
Need some help to apply the formula into powerbi. Any help or reference? Thanks!
Solved! Go to Solution.
Then you can iterate over a summarized calendar with your measure as follows:
Attrition Rate =
CALCULATE (
AVERAGEX (
ADDCOLUMNS (
SUMMARIZE ( 'Calendar', 'Calendar'[Date] ),
"AttritionRate", [Attrition Rate]
),
[AttritionRate]
),
DATESYTD ( 'Calendar'[Date] )
) * 12
The way we can write the synatx could vary depending on your data structure. I assume that you have a calendar table.
Attrition Rate =
CALCULATE (
AVERAGEX ( 'Headcount', Headcount[Attrition Rate] ),
DATESYTD ( 'Calendar'[Date] )
) * 12
Thank you @Mohammad_Refaei
However, my Attrition Rate is actually a measure. Which I cannot apply averagex on it. Any advice on this?
Then you can iterate over a summarized calendar with your measure as follows:
Attrition Rate =
CALCULATE (
AVERAGEX (
ADDCOLUMNS (
SUMMARIZE ( 'Calendar', 'Calendar'[Date] ),
"AttritionRate", [Attrition Rate]
),
[AttritionRate]
),
DATESYTD ( 'Calendar'[Date] )
) * 12
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
15 | |
11 | |
11 | |
10 | |
10 |
User | Count |
---|---|
19 | |
14 | |
13 | |
11 | |
8 |