Forum Discussion

PowerUser14's avatar
PowerUser14
New Member
5 years ago
Solved

Hide and Show visuals based on condition

Hi, 

Could you please assist me with hiding and showing visuals based on conditions in Power BI Desktop. I do not want to use the Bookmark functionality or any click event.

 

Thank you

  • PowerUser14 , Hide and show can be done best on the bookmark.

     

    The other option, which may work. Make the background of visual, font, and font background transparent using conditional formatting measure using field value option.

     

    black =

    If(selectedvalue(table[value]) ="Hide", "#FFFFFF00", "000000")

     

    white =

    If(selectedvalue(table[value]) ="Hide", "#FFFFFF00", "FFFFFF")

     

    use then in color fx with field value option, visual background, font etc.

2 Replies

  • PowerUser14 , Hide and show can be done best on the bookmark.

     

    The other option, which may work. Make the background of visual, font, and font background transparent using conditional formatting measure using field value option.

     

    black =

    If(selectedvalue(table[value]) ="Hide", "#FFFFFF00", "000000")

     

    white =

    If(selectedvalue(table[value]) ="Hide", "#FFFFFF00", "FFFFFF")

     

    use then in color fx with field value option, visual background, font etc.

    • PowerUser14's avatar
      PowerUser14
      New Member

      Thank you @amitchandak for your solution.

       

      Below is a screenshot of my visuals. I want to place them on top of each other and display them based on their condition. The way you suggested I tried implementing, but I was not able to do so. Could you please help me?

       

       

      Thank you