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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
Anonymous
Not applicable

Card to display blank unless filter selected

Hello, my tool has multiple cards to display data. The goal is to make it easy for our sales force to access certain SKU prices via their mobile devices while they are in the field. I would ideally like to make all three of the grey cards blank until the top four (not including retailer) have a selection made. 

 

THe formula here is an example of one i have found in the forums to use. It unfortunately is clashing with the card visual. So does "INT(IFFILTERED=TABLE)" formulas. They work on other visuals so this is something specific to card visuals. 

 

csteffan07994_0-1712350486841.png

 

1 ACCEPTED SOLUTION
MattAllington
Community Champion
Community Champion

You could write some formula that returns blank unless something is selected in the slicers. Something like

if(isfiltered(table[column]) && isfiltered(table[column]) && isfiltered(table[column])),<your formula>,blank())

 

or read my article here about hiding visuals. 
https://exceleratorbi.com.au/show-or-hide-a-power-bi-visual-based-on-selection/



* Matt is an 8 times Microsoft MVP (Power BI) and author of the Power BI Book Supercharge Power BI.
I will not give you bad advice, even if you unknowingly ask for it.

View solution in original post

3 REPLIES 3
MattAllington
Community Champion
Community Champion

You could write some formula that returns blank unless something is selected in the slicers. Something like

if(isfiltered(table[column]) && isfiltered(table[column]) && isfiltered(table[column])),<your formula>,blank())

 

or read my article here about hiding visuals. 
https://exceleratorbi.com.au/show-or-hide-a-power-bi-visual-based-on-selection/



* Matt is an 8 times Microsoft MVP (Power BI) and author of the Power BI Book Supercharge Power BI.
I will not give you bad advice, even if you unknowingly ask for it.

Does this method still work? I have not been able to use measures as filters on cards or multi row cards.

elkhawase
Frequent Visitor

it's a known issue that the cards doesn't allow filters 
as a workaround, we can use a workaround as 2 measures to make the font and the background of the card transparent if nothing is selected.

see full solution here

Dynamically Hide a Card - Data Visualizations - Enterprise DNA Forum

Helpful resources

Announcements
Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

Jan NL Carousel

Fabric Community Update - January 2025

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