Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by watching the DP-600 session on-demand now through April 28th.
Learn moreJoin the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now
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.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
| User | Count |
|---|---|
| 43 | |
| 38 | |
| 35 | |
| 21 | |
| 15 |
| User | Count |
|---|---|
| 63 | |
| 58 | |
| 28 | |
| 27 | |
| 25 |