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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

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
v-zhouwen-msft
Community Support
Community Support

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

 

@v-zhouwen-msft 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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.