Forum Discussion

spathak04's avatar
spathak04
Helper II
7 years ago
Solved

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 

 


  • 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

5 Replies

  • affan's avatar
    affan
    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

    • spathak04's avatar
      spathak04
      Helper II
      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.
  • v-yuta-msft's avatar
    v-yuta-msft
    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:

     

     

    Regards,

    Jimmy Tao

    • spathak04's avatar
      spathak04
      Helper II

      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. 

      • v-yuta-msft's avatar
        v-yuta-msft
        Community Support

        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