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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

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...

 

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

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...

 

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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