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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
JoergSch
Frequent Visitor

Hierarchy Table

Hello,

 

I need to build up a hierarchy table visual which shows me a task and its subtasks, whic could have multiple levels.

 

I have 2 tables.

 

Table 1 (Tasks):

IDName
1Task 1
2Task 2
3Task 3
4Task 4
5Task 5
6Task 6
7Task 7

 

Table 2 (LINKS)

PARENTCHILD
12
23
24
56

 

Task 1 has a child (2), which has 2 childs (3 and 4). Task 5 has a child (6). Task 7 has no child.

 

Result:

Task 1Task 2Task 3 
Task 1Task 2Task 4 
Task 5Task 6  
Task 7   

 

Hopefully someone could help to guide into the right direction.

 

Many thanks

 

Joerg

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@JoergSch , merge table 1 and 2 using ID and Child in Power query

: https://radacad.com/append-vs-merge-in-power-bi-and-power-query

 

Then use path in DAX to get it

example of path

https://radacad.com/parsing-organizational-hierarchy-or-chart-of-accounts-in-power-bi-with-parent-ch...

 

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

View solution in original post

1 REPLY 1
amitchandak
Super User
Super User

@JoergSch , merge table 1 and 2 using ID and Child in Power query

: https://radacad.com/append-vs-merge-in-power-bi-and-power-query

 

Then use path in DAX to get it

example of path

https://radacad.com/parsing-organizational-hierarchy-or-chart-of-accounts-in-power-bi-with-parent-ch...

 

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
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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