Forum Discussion
Anonymous
6 years agoNot applicable
What if parameter increased per year
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 da...
- 6 years ago
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.
amitchandak
Super User
6 years agoAnonymous , 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)