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

Get inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.

Reply
akkolbeck
Frequent Visitor

Issue - slicers are showing all options even if there are no values

Hi there- I'm hoping someone can help me.

 

How can I make it so that my slicers only show options if there are values associated? For example, I have an organizational hierarchy, but not all "level 1"s had terminations occur. I want my slicer to only show those "Level 1" where there are terminations. I don't want my users to click on a "level 1" and see blank visuals - that is not a good user experience. I want them to only see the "level 1"s that had terminations.

 

I've made sure that my level 1 has "show items with no data" unchecked - so now I'm lost as to what I can do next.

 

Any suggestions would be greatly appreciated - thank you in advance!

1 REPLY 1
v-haibl-msft
Microsoft Employee
Microsoft Employee

@akkolbeck

 

If we have a table like below, we can create another table which only has one column with following DAX formula and relationship.

 

Issue - slicers are showing all options even if there are no values_1.jpgIssue - slicers are showing all options even if there are no values_2.jpgIssue - slicers are showing all options even if there are no values_3.jpg

 

Then drag Table[Level1] into the slicer, and C will not be displayed in the slicer now.

Issue - slicers are showing all options even if there are no values_4.jpg

 

Best Regards,
Herbert

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!

FebPBI_Carousel

Power BI Monthly Update - February 2025

Check out the February 2025 Power BI update to learn about new features.

March2025 Carousel

Fabric Community Update - March 2025

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