Forum Discussion

JiaJie's avatar
JiaJie
New Member
4 years ago
Solved

Creating Cumulative What If Line

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 hor...
  • Anonymous's avatar
    Anonymous
    4 years ago

    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