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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

Show or Hide a Visual Based on Slicer Selection

Hello everyone,

 

Is it possible to create a measure that sends a Card behind a table if I have selected a single value in the slicer?

 

Here's my problem:

I have a page with a table and a card that should show values only if a slicer had a single value selected.

To solve this, I used the formula:

SlicerCheck = if(calculate(distinctcount([SlicerColumn]),allselected([SlicerColumn]))=1,"Y","N")

That I found in this topic:

https://community.powerbi.com/t5/Desktop/Visualisations-blank-until-something-selected-in-a-slicer/t...

 

But this measure does not work with the Card, only with the table.

 

Searching a little more, I found this "solution":

https://exceleratorbi.com.au/show-or-hide-a-power-bi-visual-based-on-selection/

Basically I can create a card that becomes transparent when I have a value selected in the slicer.

 

But the transparent card is in front of the table, preventing me from clicking to trigger spotlight mode, for example.

 

Any ideas on how to solve this problem?

 

Best Regards

3 REPLIES 3
v-juanli-msft
Community Support
Community Support

Hi @Anonymous 

A workaround is as below:

Resize the table visual as below

Capture6.JPG

Turn off the "Visual header" option for the card visual

Put card visual on top of table visual, group them (new feature since 2019/8, more details here)

Save and publish to Power BI Service

1.png

Best Regards
Maggie
Community Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

Anonymous
Not applicable

Hello @v-juanli-msft , thanks for your help.

 

Unfortunately, my PBI is still in the June update. Software updates at the company I work take a while to happen 😞

Hi @Anonymous 

You could download lastest version here. It is free.

The new version always supports older version Power BI files.

After changing reports with new version Power BI Desktop, you could publish the report to Power BI Service to replace the old one.

 

Best Regards
Maggie
Community Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors