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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

Reply
danielsun
Frequent Visitor

How to remove BLANK in ragged hierarchy Slicer.

danielsun_0-1745937031118.png

I have a Hierarchy Slicer like above.
The fileds in this slicer owns:

danielsun_1-1745937091670.png



As we can see, there are BLANK option in the secondary index. How to make this slicer like below:

danielsun_2-1745937191592.png

When there are BLANK for secondary column, only show the first index. Thanks

BTW, I tried the Third Party visual, but it cannot show dropdown. 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @danielsun 
Thank you for reaching out microsoft fabric community forum.

You want to show all first-level items in the slicer, but hide the  (Blank) from the second level when it doesn’t exist.

Power BI's built-in slicer doesn’t natively support hiding blanks in ragged hierarchies, but here’s a quick workaround:
Use a custom table to clean up the hierarchy:
CustomHierarchy =
UNION(
SELECTCOLUMNS(
FILTER('YourTable', NOT ISBLANK('YourTable'[SecondLevel])),
"Level1", 'YourTable'[FirstLevel],
"Level2", 'YourTable'[SecondLevel]
),
SELECTCOLUMNS(
FILTER('YourTable', ISBLANK('YourTable'[SecondLevel])),
"Level1", 'YourTable'[FirstLevel],
"Level2", BLANK()
)
)
Use this CustomHierarchy table in your slicer — it keeps all first-level items and only includes second-level ones when available, so you avoid showing (Blank).


If this solution helps, please consider giving us Kudos and accepting it as the solution so that it may assist other members in the community
Thank you.

View solution in original post

6 REPLIES 6
jake_working
Frequent Visitor

I have this same issue and couldn't find a simple workaround. Luckily, an older post recommended the custom visual 'Hierarchy Slicer' and that allowed the functionality of removing "(Blank)" as an option. 🙂 Good luck!

Anonymous
Not applicable

Hi @danielsun 

May I ask if you have resolved this issue? If so, please mark the helpful reply and accept it as the solution. This will be helpful for other community members who have similar problems to solve it faster.

Thank you.

Anonymous
Not applicable

Hi @danielsun 
Thank you for reaching out microsoft fabric community forum.

You want to show all first-level items in the slicer, but hide the  (Blank) from the second level when it doesn’t exist.

Power BI's built-in slicer doesn’t natively support hiding blanks in ragged hierarchies, but here’s a quick workaround:
Use a custom table to clean up the hierarchy:
CustomHierarchy =
UNION(
SELECTCOLUMNS(
FILTER('YourTable', NOT ISBLANK('YourTable'[SecondLevel])),
"Level1", 'YourTable'[FirstLevel],
"Level2", 'YourTable'[SecondLevel]
),
SELECTCOLUMNS(
FILTER('YourTable', ISBLANK('YourTable'[SecondLevel])),
"Level1", 'YourTable'[FirstLevel],
"Level2", BLANK()
)
)
Use this CustomHierarchy table in your slicer — it keeps all first-level items and only includes second-level ones when available, so you avoid showing (Blank).


If this solution helps, please consider giving us Kudos and accepting it as the solution so that it may assist other members in the community
Thank you.

Hi @Anonymous ,
Thanks for your reply.
I create a new table followed by your DAX. But under Level 2, there are still (BLANK):

danielsun_0-1746517836307.png

I believe you have got what I mean. Yes, I need remove (Blank) firstly, then Let "ARVEST001" only have Level 1 selection, no expand button. Thanks

kushanNa
Super User
Super User

Hi @danielsun 

 

Have you tried the basic filter and untick the blank value?

 

kushanNa_0-1745937941840.png

 

Hi, I tried. but I have to show the complete 1-level index. You way will filter out the 1st level index.

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Kudoed Authors