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

See when key Fabric features will launch and what’s already live, all in one place and always up to date. Explore the new Fabric roadmap

Reply
lweaver2235
New Member

Getting rid of blank values in a filter

Hi! I'm trying to clean up a filter that has three different levels (with the first level being department). Some departments have three levels (department, teams, locations), but other departments just have one level (with that just being their department). In the filter view, this shows those one level departments as having blanks. 

Is there a way to fix this so that it doesn't show the drill down for the one level departments? (I've tried filtering out the blanks at those levels, but that causes the first level to not be included - i.e. when I filtered out the last level to not include blanks, the benefits department was removed.)

 

lweaver2235_1-1714661070187.png

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi  @lweaver2235 ,

 

The default hierarchy slicer can't remove blank values. You could use the custom visual of hierarchy slicer to have a try.

Here are the steps you can follow:

1. “Get more visual -- HierarchySlicer.

vyangliumsft_0-1714722986609.png

2. Format – Visual – Selection controls.

Hide Members -- Empty

vyangliumsft_1-1714722986611.png

3. Result:

vyangliumsft_2-1714723002953.png

 

Best Regards,

Liu Yang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi  @lweaver2235 ,

 

The default hierarchy slicer can't remove blank values. You could use the custom visual of hierarchy slicer to have a try.

Here are the steps you can follow:

1. “Get more visual -- HierarchySlicer.

vyangliumsft_0-1714722986609.png

2. Format – Visual – Selection controls.

Hide Members -- Empty

vyangliumsft_1-1714722986611.png

3. Result:

vyangliumsft_2-1714723002953.png

 

Best Regards,

Liu Yang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

Kaviraj11
Super User
Super User

Hi,

This measure  will allow only to display the value that is available from the source dataset.

 

SlicerFilter = INT ( NOT ISEMPTY ( ‘TableName’ ) )

 

Put the measure in filter pane and make sure to put a condition equal to 1




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





Helpful resources

Announcements
May PBI 25 Carousel

Power BI Monthly Update - May 2025

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

May 2025 Monthly Update

Fabric Community Update - May 2025

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