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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Employee
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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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