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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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
Sept PBI Carousel

Power BI Monthly Update - September 2024

Check out the September 2024 Power BI update to learn about new features.

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

Sept NL Carousel

Fabric Community Update - September 2024

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