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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

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
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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