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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

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

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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