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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
v-yangliu-msft
Community Support
Community Support

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
v-yangliu-msft
Community Support
Community Support

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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Power BI Monthly Update - May 2024

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

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.