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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
sanjanarama
Resolver I
Resolver I

matrix display for heirarchy

I'm trying to display the heirarchy way to represent data, i have used path method , but im unable to display in visual

IDhirachynameparent IDglobal name
100Globalanullnull
101Globalbnullnull
102intermediatec101b
103countryd102c
104countrye105f
105intermediatef100a
106intermediateg105f



pathHeir = PATH(Sheet2[ID],Sheet2[parent ID])

want to display global ID and underneeth its heirarchy numbers.
1 ACCEPTED SOLUTION

In the matrix visual formatting pane go to Row headers and turn off stepped layout. That should give you the desired view.

View solution in original post

9 REPLIES 9
JirkaZ
Solution Specialist
Solution Specialist

You should just be able to put both columns (ID and Parent ID) into the same row field of the matrix visual. The hierarchy should be created automatically.

@JirkaZ 
I'm not getting desired result

sanjanarama_0-1643632903591.png

 




for example if i expand the matrix , it should look like this

100Globala  
 105Intermediatef 
  106intermediateg

sanjanarama_0-1643636330891.png


@JirkaZ 
this is how I am getting into

Seems to be correct

sanjanarama_0-1643636586801.png



but if you see 100 ID is parent of 105, and 105 is parent of 104 and 106.

so if 100 is expanded then 105 values should be shown and below that 104 and 106 respectively.

not as seperate entity
@JirkaZ 

In the matrix visual formatting pane go to Row headers and turn off stepped layout. That should give you the desired view.

sanjanarama_0-1643639546235.png



it worked, thank you I'm able to achieve for what i was looking for

@JirkaZ 
is it possible to remove empty spaces for level3 if the values are not present in that row

sanjanarama_1-1643725199123.png

 

In that case create a separate "Level" columns for Level 1, Level 2, Level 3 using the output of the PATH function. For Level 1 you should use PATHITEM(yourpath, 1) etc.
Then you'll have to create a hirearchy in your table (right click on Level 1 and select Create Hierarchy. Then add L2 and L3 to the same hierarchy.

 

Finally add this hierarchy to your matrix rows area.

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors