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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Anonymous
Not applicable

Hi all! If I have a what-if parameter, I'Setting the value of a what-if parameter based on selection

Hi all! If I have a what-if parameter, I'd like to be able to set it to a specific value (whilst still being able to use the sliders to change the value afterwards) depending on a selection.

 

Example: If I select Plan A then I'd like the "Production" parameter to show the number 10 (this number 10 would come from a measure as calculated in Plan A). And then if Plan B is selected then number 15 to be shown.

 Capture.JPG

Is this possible?

2 REPLIES 2
amitchandak
Super User
Super User

@Anonymous , I doubt you can do it with what if parameter.

 

You can display that in card

example

if(selectedvalue(plan[plan]) ="Plan A", [Measure1], [Measure2])

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

@amitchandak ah shame! For the purposes of display a card would work but I'd be wanting to be able to vary the figures around this preselected value, for which a parameter would be needed.

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.