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
mehlenbae2
Helper II
Helper II

I have a card that I want to show nothing if slicer is empty

I have a slicer that lists a bunch of names that can be selected (one name at a time). I have a card below the slicer that is supposed to show the location of the person selected in the slicer. However, when nothing is selected in the slicer I want the card to show nothing at all or <blank>. At the moment it shows the last location of the person last selected in the slicer - it should be blank as the slicer has no names selected. How can I achieve this? 

 

I am new at DAX and have no clue how to do this. Any help would be great. 

1 ACCEPTED SOLUTION
jdbuchanan71
Super User
Super User

@mehlenbae2 

If you add a measure to show the location it should work the way you want.

Person Location = SELECTEDVALUE ( YourTable[Location] )

Then you put this measure in the card.

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Hi,

I think this could be solved by using: 

Measure1 =
CALCULATE ( IF ( ISFILTERED ( Table[Column] ), 1, 0 ), ALLSELECTED ( Table ) )

 I found this on: https://community.powerbi.com/t5/Desktop/Show-blank-when-nothing-is-selected-in-the-slicers/m-p/6729...

Please mark as solved if this helps 🙂 

 

jdbuchanan71
Super User
Super User

@mehlenbae2 

If you add a measure to show the location it should work the way you want.

Person Location = SELECTEDVALUE ( YourTable[Location] )

Then you put this measure in the card.

This worked perfectly. Thank you!

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.