Forum Discussion

laciodrom_80's avatar
laciodrom_80
Helper IV
8 years ago
Solved

Highlight clicked button

Hi guys,

 

I've got some buttons to switch between some bookmarks and I wish to make highlighted last clicked button for example changing its background color or other. Any idea?

 

Thanks a lot in advance for any clue.

 

  • Anonymous's avatar
    Anonymous
    8 years ago

    laciodrom_80,

     

    It just occurred to me that there might be a workaround. What about setting the button background to 100% for all bookmarks and then have colored rectangles behind buttons that change visibility according to the bookmarks...could this reproduce a highlighted button effect?

     

    Br,

    T

54 Replies

  • Anonymous's avatar
    Anonymous
    Not applicable

    Here we go. Absolutely ridiculous functional oversight of the day. You can configure absolutely everything else apart from the button active state. But why would anyone want to do that?!

    • Anonymous's avatar
      Anonymous
      Not applicable

      Hacky workarounds. I love em

  • adp_81's avatar
    adp_81
    Frequent Visitor

    I know this is an old topic and it also has an accepted solution

    Anyway I found another way to do this, and I find it simpler than the other one (not cleaner though)

     

    What about having two buttons, one with the desired "clicked" style and the other with the "not clicked" style. Both in the same position, overlapping each other. And toggle their visibility using bookmarks according to the desired output you want to show?

     

    I've test it and works as expected. 

    Hope this may help anyone. 

     

     

    • hiran's avatar
      hiran
      Helper I

      ah smart. didn't think of this, thanks!

    • Omatkoicorko's avatar
      Omatkoicorko
      New Member

      thats amazing, something that is normal in other BI tools like in MicroStrategy and takes 30 seconds, here is an art of state in workarounds, working with power bi for a while and it feels liek downgrade to other tools

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi laciodrom_80,

     

    You are on the right track.

    I use buttons for e.g. navigation between pages and need to highlight the last clicked button so the user knows what page they are on.

    I do this by disabling the fill option in the button formatting and enabling the background option in the bookmark the button navigates to. Note, this approach doens't quite work if the bookmarks are used to change the visibility of visualizations on the same page and you want the filters to carry between bookmarks (atleast I haven't gotten it to function properly, could work though.)

    No backgroundHighlighted buttonWhat it looks like

     

     

     

     

     

     

     

    Br, 

    T

    • laciodrom_80's avatar
      laciodrom_80
      Helper IV

      Hi Anonymous,

       

      thanks for the hint, unfortunatelly I'm just using bookmarks to change the visibility of visualizations on the same page :smileysad:

      • Anonymous's avatar
        Anonymous
        Not applicable

        laciodrom_80,

         

        It just occurred to me that there might be a workaround. What about setting the button background to 100% for all bookmarks and then have colored rectangles behind buttons that change visibility according to the bookmarks...could this reproduce a highlighted button effect?

         

        Br,

        T

      • Anonymous's avatar
        Anonymous
        Not applicable

        Hi laciodrom_80 

         

        I have same requirement. Can you please share me the example as well?

         

    • naizam's avatar
      naizam
      Helper II

      thanks laciodrom_80  for sharing. It works like a charm 👍

      Hope Power BI team provide a fix via formatting in the future releases.

       

      Thanks,

      Naizam

  • jorisvp's avatar
    jorisvp
    Regular Visitor

    Hi laciodrom_80 , I'm also very interested in your solution.  Could you also send me the file?  joris_v_p [at] hotmail [.com]

     

    Thank you!