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

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register 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
v-yangliu-msft
Community Support
Community Support

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
v-yangliu-msft
Community Support
Community Support

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
November Carousel

Fabric Community Update - November 2024

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

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

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! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

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