Forum Discussion
AishwariyaV
Helper IV
6 years agoMultiple what if based on selection
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 th...
- 6 years ago
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
amitchandak
Super User
6 years agoYou 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(),
AishwariyaV
Helper IV
6 years ago- amitchandak6 years ago
Super User
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