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

July 28 - August 9 | Final Round of the Power BI Dataviz World Championships. This is your chance. Learn more

Reply
Syndicate_Admin
Administrator
Administrator

dropdown menu with a working button

how can i get a dropdown menu with a working button??

 

I have tried lots of coding i've found online but can't get it to work. My drop down menu named as dropdown1 and the options are BSC1, CV5 and PCR3. The pages I want the drop down menu to direct them to are labelled the same to make it easier. I'm trying to link the drop down with a confirm button that will then navigate the user to the pages

2 REPLIES 2
Syndicate_Admin
Administrator
Administrator

@Emmabb I would recommend utilizing a switch in the onselect of your button

It would work like this

 

Switch(dropdown.selected.value,

"Possible Value 1", Navigate(where to go if this is outcome),

"Possible value 2", Navigate(where to go if this is outcome),

Navigate(where to go if outcome is not listed above)

)

 

On my vellphone so syntax may be slightly off but it should get you going in roght direction

Syndicate_Admin
Administrator
Administrator

@Emmabb , are you talking about a Canvas App? if so, you should be able to use this formula on the OnSelect property of your button: Navigate(dropdown1.SelectedText)

 

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

Fabric Community Sticker Design Challenge Barcelona Carousel

Fabric Community Sticker Challenge - Barcelona 2026

If you love stickers, then you will definitely want to check out our community sticker challenge, Barcelona edition!

July Power BI Update Carousel

Power BI Monthly Update - July 2026

Check out the July 2026 Power BI update to learn about new features.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.