Forum Discussion

ravi_ch's avatar
ravi_ch
Helper I
4 years ago
Solved

WHAT if parameter

  here i created column chart using what if but  if choosing 2019 and setting the value to rev - it also applying to all the years.   what i needed If i select 2019 (year slicer) and set v...
  • v-jingzhang's avatar
    4 years ago

    Hi ravi_ch 

     

    I checked your pbix. You put what-if parameter values in the column chart as Values fields. Do you want to select a year first and set two values in two what-if slicers, then select another year, set two what-if values, and so on for other four years? And finally you hope to see 12 different values in the column chart?

     

    If my understanding above is correct, I'm afraid this is not possible to be achieved with only two what-if slicers. When we change the value in a what-if slicer, its previous value will not be stored in the report. It will apply its current value to wherever it's used on the report page. Currently when you use what-if value as Values field, it's used on every column.  

     

    If you want to show 12 dynamic different values, you need 12 slicers to set values separately and two SWITCH measures to decide which value should be shown on each column. I created a simple sample for 2019 and 2020 in the attached pbix. 

     

    Best Regards,
    Community Support Team _ Jing
    If this post helps, please Accept it as Solution to help other members find it.

    1117_whatif.pbix40 KB