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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
JustinDoh1
Post Prodigy
Post Prodigy

How do I show/hide these visuals (based on filter selection)?

Hi,

I was trying to get some feedbacks for an sample for about a week, but I have not gotten yet, so I am posting here again.

I have uploaded my PBIX file here.

 

I have three visuals that I would like to show and hide based on selection from a filter (Location).

 

These visuals were created using Parameter. I am not sure if that makes any difference.

JustinDoh1_0-1733943788875.png

I also tried to create relationship between these three visuals and dim table (Location), but nothing changes.

 

Somebody mentioned about solution using RLS, but I am not sure how I approach it.

 

But, after watching several YouTube contents on this topic, I found some solutions by putting another layer over visuals and use a white color to cover based on selections.

Is it the optiomal solution?

 

Thanks.

2 REPLIES 2
Anonymous
Not applicable

Hi @JustinDoh1 ,

Agree with you on that last solution, it's relatively simple to implement.

If you want to hide visual when you select all, try this

Color = 
IF(ISFILTERED('Location'[ProviderName]),"RGBA(255,255,255,0)","RGBA(255,255,255,1)")

Use this measure to set the background color of the inserted graphic.

Final output

vzhouwenmsft_0-1733969644092.png

vzhouwenmsft_1-1733970041881.png

 

Best Regards

 

@Anonymous Thank you so much for your feedback.

I think the issue I am facing is, if I have a cover (shape) on the top of "parameter" visual, I cannot drag the parameter. I think this method works if visual that I am covering does not have to be interactive.

 

So, my next approach was applying conditional formating on each parameter itself, but even doing that, it would not change color as I expected.

 

I created three measures for each conditions (like below).

ALI Cover = IF(SELECTEDVALUE('Location'[ProviderName]) in {"ALI"},"White","Blue")

 

I have uploaded my latest PBIX file here.

 

JustinDoh1_1-1734033876020.png

 

 

 

 

Is there any way I could use RLS by chance?

 

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors