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!Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.
Hi,
Im trying to create a What if parameter for end user to select "attrition rate" for example user would select 5% per year.
Then in my "Line and stacked column chart" i would have x axis as date and y axis as number of employees.
My end goal is then to have a line showing number of employees with 5% loss per year cumulative.
Outcome example
Year | Employees | What if calculation result |
2020 | 1000 | 950 |
2021 | 1000 | 900 |
2022 | 1000 | 850 |
2023 | 950 | 760 |
2024 | 950 | 712,5 |
Very thankful for any help!
Solved! Go to Solution.
@Anonymous ,
You need to create this measure:
_Accumulate = SUM('Table'[Employees]) - ((RANKX(ALL('Table'[Year]), CALCULATE(MIN('Table'[Year])),, ASC) * Parameter[Parameter Value]) * SUM('Table'[Employees]) / 100)
Check the attached file.
@Anonymous , Try a measure like
measure =
var _min = minx(allselected(Table), Table[Year])
var _sel = selectedvalue(Slicer[slicer]) //what if value
return
calculate( sum(Table[Employees]) - (((max(Table[Year]) -_min)+1) * _sel * sum(Table[Employees]))/100)
@Anonymous ,
You need to create this measure:
_Accumulate = SUM('Table'[Employees]) - ((RANKX(ALL('Table'[Year]), CALCULATE(MIN('Table'[Year])),, ASC) * Parameter[Parameter Value]) * SUM('Table'[Employees]) / 100)
Check the attached file.
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.
User | Count |
---|---|
12 | |
11 | |
9 | |
8 | |
8 |