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

Level up your Power BI skills this month - build one visual each week and tell better stories with data! Get started

Reply
rpjheeney
Frequent Visitor

Card Visual

Hi

 

Is there a way for the card display to be blank, rather than the first record in the table showing, when a slicer is set to All?

 

Thanks

 

Rob

1 ACCEPTED SOLUTION

Let's modify the measure to ensure it displays the selected value when a specific item is chosen from the slicer:

DisplayValue =
IF(
ISFILTERED('Table'[Column]),
FIRSTNONBLANK('Table'[Column], BLANK()),
BLANK()
)
To ensure the card updates correctly when a new value is selected, you can use the HASONEVALUE function to check if only one value is selected:

DisplayValue =
IF(
HASONEVALUE('Table'[Column]),
VALUES('Table'[Column]),
BLANK()
)
This measure will display the selected value when one item is chosen from the slicer and show a blank value when the slicer is set to "All."

Best Regards
Saud Ansari
If this post helps, please Accept it as a Solution to help other members find it. I appreciate your Kudos!

View solution in original post

3 REPLIES 3
saud968
Memorable Member
Memorable Member

Yes, you can achieve this by using a measure to control the display of the card. Here’s a step-by-step approach:

Create a Measure: Create a measure that returns a blank value when all items are selected in the slicer.

DisplayValue =
IF(
ISFILTERED('Table'[Column]),
FIRSTNONBLANK('Table'[Column], BLANK()),
BLANK()
)
Use the Measure in the Card: Replace the existing field in the card visual with this new measure.

This way, when the slicer is set to "All," the card will display a blank value instead of the first record in the table.

Best Regards
Saud Ansari
If this post helps, please Accept it as a Solution to help other members find it. I appreciate your Kudos!

Hi Saud, many thanks for this. 

 

This has worked when the slicer is set to All. However, when I select a new value from the slicer, the value in the card still displays (Blank) instead of the value I've selected from the dropdown.

 

Is there a way round this? 

 

Thanks

 

Rob

Let's modify the measure to ensure it displays the selected value when a specific item is chosen from the slicer:

DisplayValue =
IF(
ISFILTERED('Table'[Column]),
FIRSTNONBLANK('Table'[Column], BLANK()),
BLANK()
)
To ensure the card updates correctly when a new value is selected, you can use the HASONEVALUE function to check if only one value is selected:

DisplayValue =
IF(
HASONEVALUE('Table'[Column]),
VALUES('Table'[Column]),
BLANK()
)
This measure will display the selected value when one item is chosen from the slicer and show a blank value when the slicer is set to "All."

Best Regards
Saud Ansari
If this post helps, please Accept it as a Solution to help other members find it. I appreciate your Kudos!

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

Check out the April 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.