This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreLevel up your Power BI skills this month - build one visual each week and tell better stories with data! Get started
Hi,
I am currently trying to create a cumulative what if line which can be adjusted by the user on a slicer when a what if parameter is created. I have created a what if line but is currently horizontal despite creating a new rolling total meausure.
Does anyone knows how to create cumulative what if parameter line?
An example of what I am looking for to create:
Currently:
Solved! Go to Solution.
Hi @JiaJie ,
Here are the steps you can follow:
1. In Power query, Add Column – Index Column – From 1.
2. In Modeling – New parameter.
Minimum = 5
Maximum = 45
Increment = 5
3. Create calculated column.
Index = RANKX('Parameter','Parameter'[Parameter],,ASC)
4. Create the relationship between the two tables with [Index]
5. Result:
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
Hi @JiaJie ,
Here are the steps you can follow:
1. In Power query, Add Column – Index Column – From 1.
2. In Modeling – New parameter.
Minimum = 5
Maximum = 45
Increment = 5
3. Create calculated column.
Index = RANKX('Parameter','Parameter'[Parameter],,ASC)
4. Create the relationship between the two tables with [Index]
5. Result:
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
@JiaJie , a measure like
Countx(filter(allselected(Table), Table[shift_info] <=max(Table[shift_info] ) ),Table[shift_info] ) *5
or
Countx(filter(allselected(Table), Table[shift_info] <=max(Table[shift_info] ) ),Table[shift_info] ) * [what if measure]
Hi @amitchandak,
I have tried using your CountX method however it is counting the number of shift info multiplying the what if.
However I am looking to just create a Y=MX line M is the what if number. I have tried to create a distinct table of shift info and rank it follow by muktiplying the what if. But it is still giving me a flat line.
Check out the April 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 28 | |
| 23 | |
| 22 | |
| 16 | |
| 16 |
| User | Count |
|---|---|
| 61 | |
| 35 | |
| 29 | |
| 23 | |
| 22 |