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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Anonymous
Not applicable

How to remove the blank/null for a hierarchy from a slicer.

Tataman_1-1653568178528.pngTataman_2-1653568218947.png

Tataman_4-1653568366138.png

 

 

I want to remove the Blank at DM & MC level (Marked in red) with out impacting DO level in Hierarchy slicer. Because, there is some calculation based on that. Is there any possible ways? I tried removing the blank from filter. but, it is impacting the DO level as well. If I removing the null values / blank in DM & MC, the region is also getting vanished. Please help!!!!

1 ACCEPTED SOLUTION
Icey
Community Support
Community Support

Hi @Anonymous ,

 

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

Icey_0-1653966135574.png

Icey_1-1653966144600.png

Icey_3-1653966400821.png

 

Reference: Solved: Remove blank from hierarchy slicer - Microsoft Power BI Community

 

Please note that it will both remove the blank values and non-blank value under it.

Icey_2-1653966357911.png

 

 

Best Regards,

Icey

 

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

6 REPLIES 6
Greg_Deckler
Super User
Super User

@Anonymous One way would be to create three new columns and use those in your hierarchy.

Level 1 = [Region]
Level 2 = IF(ISBLANK([DM]) && ISBLANK([MC]),[DO],[DM])
Level 3 = [MC]

 


Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...
Anonymous
Not applicable

This is not coming as expected. 😥

@Anonymous Not sure what is not expected/problem. Attached a PBIX below signature if perhaps it helps.

 


Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...
Anonymous
Not applicable

@Greg_Deckler  is there any way to remove the null / blank from level 3 as well. because when I am trying to remove it. many items are also getting lost. 

Icey
Community Support
Community Support

Hi @Anonymous ,

 

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

Icey_0-1653966135574.png

Icey_1-1653966144600.png

Icey_3-1653966400821.png

 

Reference: Solved: Remove blank from hierarchy slicer - Microsoft Power BI Community

 

Please note that it will both remove the blank values and non-blank value under it.

Icey_2-1653966357911.png

 

 

Best Regards,

Icey

 

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

Anonymous
Not applicable

@Greg_Deckler Thanks for your quick solution. Will try to work with this turn around. however, a blank / null is coming in Level 3 level (Marked below). Our requirement is also to remove that as well.

 

Tataman_0-1653590251404.png

 

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Power BI Monthly Update - May 2024

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