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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
spathak04
Helper II
Helper II

replace button with Dropdown

Hello,

I have created a page with four buttons on it, and on click of each button map gets changed. I am doing this by showing hiding bookmark. 
My requirement is: Instead of buttons I need a dropdown list on whcih I select and Map gets change. Any possibility to do it?

Thanks 

 

button dropdown request.PNG

1 ACCEPTED SOLUTION


@spathak04 wrote:

Thank you for the help.
I am stuck with the legend thing. My four selections have a different legends associated with them. THose legends have the categories defined in it.  And based on legends my colors are defined.  I have four caculated column for four maps and those calculated columns are my legends. 

Right now I dont find any option to dynamically select legends based on my selection from slicer. 


@spathak04

 

So you also want to make the four calculate legend columns to be shown on the button based on the slicer, right? I'm afraid currently power bi doesn't support this. As a workaround, you may try Button and Bookmark in power bi.

 

Regards,

Jimmy Tao

View solution in original post

5 REPLIES 5
v-yuta-msft
Community Support
Community Support

Hi spathak04,

 

Based on your description, your 4 button actions(inside bookmarks) are based on the same dataset, right? If so, you can add a new column in your table which contains 4 flags like below and create a slicer based on the selection column:

Capture.PNG2.PNG 

 

Regards,

Jimmy Tao

Thank you for the help.
I am stuck with the legend thing. My four selections have a different legends associated with them. THose legends have the categories defined in it.  And based on legends my colors are defined.  I have four caculated column for four maps and those calculated columns are my legends. 

Right now I dont find any option to dynamically select legends based on my selection from slicer. 


@spathak04 wrote:

Thank you for the help.
I am stuck with the legend thing. My four selections have a different legends associated with them. THose legends have the categories defined in it.  And based on legends my colors are defined.  I have four caculated column for four maps and those calculated columns are my legends. 

Right now I dont find any option to dynamically select legends based on my selection from slicer. 


@spathak04

 

So you also want to make the four calculate legend columns to be shown on the button based on the slicer, right? I'm afraid currently power bi doesn't support this. As a workaround, you may try Button and Bookmark in power bi.

 

Regards,

Jimmy Tao

affan
Solution Sage
Solution Sage

Hi @spathak04,

 

what change does occur when you click on a button? Does this change the data shown on the map or it hides the map visual or shows the other one

 

 

Regards

Affan

When you click a button it shows a different map with different attributes. Basically I have four bookmarks which hides and show based on a button action.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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