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
csteffan07994
New Member

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