Forum Discussion

annjoseph's avatar
annjoseph
Regular Visitor
6 years ago
Solved

What if parameter

I have sales table with Product Group name,Product Sub group name,Volume, Price. I created a Matrix with Product Group name and Product Sub group in rows and volume and price in Values.Then i have c...
  • v-lionel-msft's avatar
    6 years ago

    Hi annjoseph ,

     

    If the ratio of changes between products is fixed, then amitchandak solution is indeed effective.

    Otherwise you may need to create multiple ‘What if’ parameters.

     

    Best regards,
    Lionel Chen

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

  • v-lionel-msft's avatar
    v-lionel-msft
    5 years ago

    Hi annjoseph ,

     

    Measure = 
    SWITCH(
        SELECTEDVALUE(Sales[CountryRegion]),
        "China", SUM(Sales[Sale 2013]) * [Parameter1 Value],
        "Germany", SUM(Sales[Sale 2013])*[Parameter2 Value],
        "United", SUM(Sales[Sale 2013])*[Parameter3 Value]
    )

    You need to create multiple 'What-IF' parameters, otherwise, you need use bookmark feature.

     

    Best regards,
    Lionel Chen

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.