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

Try your skills in the Power BI Dataviz World Championship! Round one ends June 26. Join now

Reply
Anonymous
Not applicable

Blank Rows - Hierarchy matrix table

I was able to create an hierarchy following this guide: Parent-child hierarchies – DAX Patterns

Please see the image below:

InkedpowerBi empty row_LI.jpg

 

What happens here is that the Parent shows the accumulated values. Which is exactly what i want. BUT in some cases

the parent also has values.

Thus power Bi creates an blank row with its values.

This is the code ive got - that creates the level.

Level1 = 

VAR LevelNumber = 1

VAR LevelKey = PATHITEM ( stats[path], LevelNumber, INTEGER )

VAR LevelName = LOOKUPVALUE ( stats[name], Stats[ID], LevelKey )

VAR Result = LevelName

RETURN

Result

Ive tried to create some sort of IF statement - but did not succeed as im not familiar with DAX.

3 REPLIES 3
v-yalanwu-msft
Community Support
Community Support

Hi, @Anonymous ;

Is your problem solved?? If so, Would you mind accept the helpful replies as solutions? Then we could close the thread. More people who have the same requirement will find the solution quickly and benefit here. Thank you.

Best Regards,
Community Support Team_ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
v-yalanwu-msft
Community Support
Community Support

Hi, @Anonymous ;

I am not very clear about your collective needs. I have carefully checked your link and created a simple case. If you use the parent-child structure, you can directly use the matrix;

 

Maybe you can correct my understanding, you can share a simple example and hopefully the output?

vyalanwumsft_0-1645513799526.png

Looking forwarding to your reply!

Best Regards,
Community Support Team_ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

amitchandak
Super User
Super User

@Anonymous , I think you should use isinscope

https://www.kasperonbi.com/use-isinscope-to-get-the-right-hierarchy-level-in-dax/

 

You can check value and isinscope

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Fabric Data Days is here Carousel

Fabric Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

May Power BI Update Carousel

Power BI Monthly Update - May 2026

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

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.