Forum Discussion

aparnavjyn's avatar
aparnavjyn
Helper I
6 years ago
Solved

Hide a bookmark based on filter selection

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? Many thanks!

 

 

  • Hi aparnavjyn ,

     

    How about using a card to cover the BookMark icon?

    Reference: Show or Hide a Power BI Visual Based on Selection.

     

    Or, you can create a measure like so:

    Make Transparent Measure = IF ( SELECTEDVALUE ( 'YourTable'[SlicerColumn] ) = "particular value", "Black", "#FFFFFF00" )
    

    Then, select the bookmark icon and set rule of Line color in icon field.

     

     

    Best Regards,

    Icey

     

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

5 Replies

  • Icey's avatar
    Icey
    Community Support

    Hi aparnavjyn ,

     

    How about using a card to cover the BookMark icon?

    Reference: Show or Hide a Power BI Visual Based on Selection.

     

    Or, you can create a measure like so:

    Make Transparent Measure = IF ( SELECTEDVALUE ( 'YourTable'[SlicerColumn] ) = "particular value", "Black", "#FFFFFF00" )
    

    Then, select the bookmark icon and set rule of Line color in icon field.

     

     

    Best Regards,

    Icey

     

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

    • aparnavjyn's avatar
      aparnavjyn
      Helper I

      Very innovative. But didnt work in case as I cannot cover the bookmark as the bookmark needed to be clicked.

      • Icey's avatar
        Icey
        Community Support

        Hi aparnavjyn ,

         

        The second workaround won't overlay the bookmark icon. It changes the color based on slicer. Please check if it could meet your requirements.

         

         

        Best Regards,

        Icey

         

        If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

    • aparnavjyn's avatar
      aparnavjyn
      Helper I

      Yes, was looking for the same. Any work around for making the bookmark transparent based on a filter selection?