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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
Jabbajuice
Frequent Visitor

Parent/Child Hierarchies visual with multiple parents

So I'm trying to utilize one of the hierarchy visuals by creating parent/child hierarchies using the PATH function within DAX. 

Basically, I'm dealing with scheduling data laid out similar to this :

 

Task ID |   Predeccesor | Successor

1              5,6,8              4

2              8,12,20          22, 25

3              X, X, X           X,X

4             X                    X,X,X

 

Each Task in my data set has multiple predeccesors and successors and I want to find a way to create a hierarchy visual connecting all these tasks together somehow. I tried splitting the pred. and succ. by commas into rows, but then the PATH function didn't work because the Task ID showed up multiple times in the dataset. I also am not sure how to get the pred. and succ. to show up as seperate numbers without splitting them by comma.

 

Is there a way to set this up to make the PATH function work? Or is there another way I can do this to make a hierarchy visual work? 

 

Thank you!

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi  @Jabbajuice ,

Here are the steps you can follow:

1. Enter the Power query and split the columns [Predeccesor] and [Successor] respectively.

Home – Split column – By Delimiter.

vyangliumsft_0-1654745028981.png

vyangliumsft_1-1654745028982.png

Result:

vyangliumsft_2-1654745028983.png

2. Select [Predeccesor1], [Predeccesor2], [Predeccesor3] three columns – Transform – Unpivot Columns.

vyangliumsft_3-1654745028985.png

3. Select [Successor 1], [Successor 2], [Successor 3] three columns – Transform – Unpivot Columns.

vyangliumsft_4-1654745028986.png

Result:

vyangliumsft_5-1654745028987.png

4. Result:

Into the matrix.

vyangliumsft_6-1654745028990.png

 

Best Regards,

Liu Yang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi  @Jabbajuice ,

Here are the steps you can follow:

1. Enter the Power query and split the columns [Predeccesor] and [Successor] respectively.

Home – Split column – By Delimiter.

vyangliumsft_0-1654745028981.png

vyangliumsft_1-1654745028982.png

Result:

vyangliumsft_2-1654745028983.png

2. Select [Predeccesor1], [Predeccesor2], [Predeccesor3] three columns – Transform – Unpivot Columns.

vyangliumsft_3-1654745028985.png

3. Select [Successor 1], [Successor 2], [Successor 3] three columns – Transform – Unpivot Columns.

vyangliumsft_4-1654745028986.png

Result:

vyangliumsft_5-1654745028987.png

4. Result:

Into the matrix.

vyangliumsft_6-1654745028990.png

 

Best Regards,

Liu Yang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

Anonymous
Not applicable

In order for the Hierarchy to appear on the visuals, one way to accomplish it would be creating groups and subgoups of 'Task'. And then, right click on Task parent and click create herarchy.  Once created, add the child groups to this herarchy, and use it on charts to show you the breakdown.

adambal_1-1654564573099.png

 

adambal_0-1654564516169.png

 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 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.