Forum Discussion

MGASP01's avatar
MGASP01
Frequent Visitor
6 years ago

Hiding or disabling buttons

Hi all! Is there a way to hide or disable a button so the user can't press it?

I have a button and set the action of it to be bookmark, but I want the user to be able to press it only if there's one value selected in a slicer.

The trick that I found is to set the button trasparency to 100% when there are 2 or more values selected in the slice, but it's not the right way to do it, since the user can see the button passing the mouse over it and press it anyways.

Anyone can help, please?

 

Mick

 

 

7 Replies

  • Anonymous's avatar
    Anonymous
    Not applicable

    HI MGASP01,

    I don' think it is possible to achieve your requirements. AFAIK, power bi does not support to interact button actions filter or dax formulas, you need to manually change its properties.  (conditional formatting features not available on buttons, you also not able to set or interact with button background colors)
    In my opinion, I'd like to suggest you submit an idea for your requirements.

    Regards,

    Xiaoxin Sheng

     

    • MGASP01's avatar
      MGASP01
      Frequent Visitor

      Hi Greg, thanks for answering me back.

      How do I turn the action off?

      I inserted a conditional formatting to the tooltip just to show a message..

       

      • Greg_Deckler's avatar
        Greg_Deckler
        Icon for Community Champion rankCommunity Champion

        MGASP01 - Well you do that in the formatting pane for the button. But, honestly I have no idea how you changed the transparency when two or more items were selected in the slicer so I figured if you could do that, you could set the Action on/off. Honestly, how in the world did you change transparency?

         

  • Hi,

    I wanted to hide a bookmark based on the selection made on a geography filter. When one particular value is selected in the filter the only the bookmark should be visible. Is there any work around for this? Greg_Deckler