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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Parent-Child Hierarchy - Properly Filter Out Empty Leaves in Matrix

So, I've looked at quite a few implementations of Parent-Child Hierarchies, but I haven't been able to find one that does what I want. Unfiltered, my hierarchy looks like this:

KPIs no filter.PNG

If I try to filter out the empty leaves, by using a formula such as:

EmptyLeaf4 = if(AND(ISINSCOPE(Query1[kpi_level4]),SELECTEDVALUE(Query1[kpi_level4])=blank()),1,0)

It filters out to this:
KPIs filtered.PNG

So basically, if at any point in the hierarchy there is an empty leaf for that root, it removes all of them. What I really want the matrix to show is exactly how it is on the Hierarchy Slicer when you turn off "Empty Leaves" (picture below):
Hierarchy Slicer.PNG

But also being able to show the values next to each one of them. Anyone been able to do this? I've tried the multiple table implementation of the Hierarchy (one table per level, as suggested here: Ragged Hierarchy Solution), however, it then filters out all KPIs that don't have the deepest level when you drill-down (same as filtering using "EmptyLeaf4" above). I can't use the exact method of the solution, because my metrics are not additive and I have a multiple-parent hierarchy.  Any ideas?

 

Appreciate the help!

2 REPLIES 2
v-piga-msft
Resident Rockstar
Resident Rockstar

Hi @Anonymous,

 

By my tests, I'm afraid that we cannot achieve your desired ouput currently in Power BI matrix.

 

As it will filter the row which is blank.

 

Please post your idea in Power BI ideas Forum add your comments there to improve Power BI and make this feature coming sooner.


Best Regards,

Cherry

Community Support Team _ Cherry Gao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

Hi, 

 

I have the same requirement, by any chance were you able to resolve this problem ?

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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