Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hey guys,
I am currently working on a scenario in power bi.
I have implemented what if analysis with a sample dataset.
I am considering "Product Quantity" as a what if parameter, which answers the question, "What happens to my sales if i increase/decrease my quantity ".
My requirement is, when i select a particular product name i should be able to get a what if slicer for that product name.
And when i select another product name i should get another what if slicer for the second selected product.
i.e;
I should have mutiple what if slicers for each products that has been selected. And the maximum selection allowed must be 4 or 5.
Hope someone would help me out with this!
Solved! Go to Solution.
Some thing like this, or combine using the switch
measure =
var _max = maxx(whatifcond,whatifcond[whatifcond])
return
calculate(sum(table[revenue]), filter(table[category] ="Condiments"))*_max
You have used is the filter and then check the value
https://powerpivotpro.com/2013/03/hasonevalue-vs-isfiltered-vs-hasonefilter/
like
if(isfiltered(product[product]) &&max(product[product]) ="ABC",
Or use Switch( True(),
Some thing like this, or combine using the switch
measure =
var _max = maxx(whatifcond,whatifcond[whatifcond])
return
calculate(sum(table[revenue]), filter(table[category] ="Condiments"))*_max
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 63 | |
| 55 | |
| 42 | |
| 41 | |
| 23 |
| User | Count |
|---|---|
| 167 | |
| 135 | |
| 120 | |
| 79 | |
| 53 |