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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

Create a Dependency Visual

I am looking to create a view that shows stakeholders and the programs that they are dependent on. I attempted to do this with a tree view but it only allows me to show the stakeholders under each program. Is there a view that would allow me to show that ex. Jack is dependent on Program 1 and Program 2 without simply listing the stakeholders under each project?

 

 Project 1Project 2Project 3Project 4
John X   
JackXX  
SteveX XX
Bill X  
1 ACCEPTED SOLUTION
edhans
Super User
Super User

You must normalize your data. Select the Name column in Power Query, and then un pivot other columns on the Transform ribbon. It will return the following table. THen can set slicers or filters by project or person.

2020-05-04 13_03_30-Untitled - Power Query Editor.png

See the M code below to see what I did.

1) In Power Query, select New Source, and then select Blank Query
2) On the Home ribbon, select the "Advanced Editor"
3) Remove everything you see, then paste the M code I gave you into that box.
4) Tap Done

let
    Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45W8srPyFNQ0lGKAGIFOI7VAcokJmdDJSJQJIJLUstSkUQhKkAyTpk5OUiCUC2xAA==", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type text) meta [Serialized.Text = true]) in type table [Name = _t, #"Project 1" = _t, #"Project 2" = _t, #"Project 3" = _t, #"Project 4" = _t]),
    #"Changed Type" = Table.TransformColumnTypes(Source,{{"Name", type text}, {"Project 1", type text}, {"Project 2", type text}, {"Project 3", type text}, {"Project 4", type text}}),
    #"Unpivoted Other Columns" = Table.UnpivotOtherColumns(#"Changed Type", {"Name"}, "Project", "Dependency")
in
    #"Unpivoted Other Columns"


Did I answer your question? Mark my post as a solution!
Did my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!

DAX is for Analysis. Power Query is for Data Modeling


Proud to be a Super User!

MCSA: BI Reporting

View solution in original post

1 REPLY 1
edhans
Super User
Super User

You must normalize your data. Select the Name column in Power Query, and then un pivot other columns on the Transform ribbon. It will return the following table. THen can set slicers or filters by project or person.

2020-05-04 13_03_30-Untitled - Power Query Editor.png

See the M code below to see what I did.

1) In Power Query, select New Source, and then select Blank Query
2) On the Home ribbon, select the "Advanced Editor"
3) Remove everything you see, then paste the M code I gave you into that box.
4) Tap Done

let
    Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45W8srPyFNQ0lGKAGIFOI7VAcokJmdDJSJQJIJLUstSkUQhKkAyTpk5OUiCUC2xAA==", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type text) meta [Serialized.Text = true]) in type table [Name = _t, #"Project 1" = _t, #"Project 2" = _t, #"Project 3" = _t, #"Project 4" = _t]),
    #"Changed Type" = Table.TransformColumnTypes(Source,{{"Name", type text}, {"Project 1", type text}, {"Project 2", type text}, {"Project 3", type text}, {"Project 4", type text}}),
    #"Unpivoted Other Columns" = Table.UnpivotOtherColumns(#"Changed Type", {"Name"}, "Project", "Dependency")
in
    #"Unpivoted Other Columns"


Did I answer your question? Mark my post as a solution!
Did my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!

DAX is for Analysis. Power Query is for Data Modeling


Proud to be a Super User!

MCSA: BI Reporting

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 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