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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.