Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Anonymous
Not applicable

Generate two interacting What If Parameters

I want to generate two parameters where following conditions satisfy:

max value 100

minimum value 0

If i select 70 from one slicer other should show range 0-30 only , that is 100-x.

I wrote this expression using What if parameters.It has no syntax errors but does not do anything either.

 

Parameter2 = GENERATESERIES(0, 100-SELECTEDVALUE(Parameter[Parameter]), 1)

 

Any suggestions?

 

Regards

PowerBIUser

4 REPLIES 4
v-piga-msft
Resident Rockstar
Resident Rockstar

Hi @Anonymous,

 

By my test, if you want to reference the two parameters each oter, it seems that it will not work.

 

I suggest you could create one what if parameter x and then creata a measure with 100-'x'[x].

 

Capture.PNG

 

If you need further help, please share some sample data and your desired output, so that we can help further investigate on it?

 

Reference:Using the new "What-If" Interface for Power BI

 

Best Regards,

Cherry

Community Support Team _ Cherry Gao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

Hi Cherry,

 

Thanks for your help 🙂

 

Slicer 1=0-100

Slicer 2=100-(value selected in slicer 1)

Since i want both the parameters to generate range and i want to show it as list of values available for the user to select , creating one parameter and one measure will not help.Measure cannot be put on slicer.

 

Capture.PNG

Right now i am trying to generate series for which data does not exist already. But i dont mind importing 1-100 list of values from an excel if in case we dont want to use generate series function and create some calculated columns that might help.

 

Thanks

 

Anonymous
Not applicable

Can somebody please suggest a solution.

I really need this , it is very easily possible in Spotfire  😞

 

 

Thanks for your help in advance

 

Regards

PowerBIUser

In case anyone else is struggling with this issue, I came up with a workaround.

 

I too couldn't find a way to set the max parameter2 value based on the selected value of parameter1, so instead I fixed the maximum selected value of the second parameter:

 

Parameter2 Value = MIN(SELECTEDVALUE('Parameter2[Parameter2], 0.1),1-Parameter1[Parameter1 Value])
 
I then added a Card visual next to the slicer showing the Parameter2 Value, which shows the overridden value.
 
Not perfect, but it does the job!

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.