Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
PowerUser14
New Member

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

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@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.

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@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.

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?

 

PowerUser14_0-1625658415008.png

 

Thank you

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.