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
KS12
Regular Visitor

Pivot / Merge question

I'm looking to keep this same matrix visualization structure, which is currently created using just data set 1.  I need to merge this with the data from data set 2.

tempsnip.png

I originally planned to just

1. pivot data set 1 to have each "generic role" in an individual column to result in 1 row for the each Scrum Team/Project

2. then merge queries using "Project Name" from data set 1 & "US Tech Project Name" from data set 2 as the matching column

3. unpivot the all "generic role" columns & "staff name" columns to create 2 columns 1 = generic roles & 2 = staff names

 

Unfortunately, this did not work since there are multiple staff names for the same role.  Any suggestions?

 

data set 1 - Roster sheet

Roster sheet.PNG

data set 2 - Project sheet

Project sheet.PNG

End goal for merging data sets (green = data set 1 & blue = data set 2)

End Goal.PNG

1 ACCEPTED SOLUTION
v-yadongf-msft
Community Support
Community Support

Hi @KS12 ,

 

Transform data in Power Query: select the three columns inside the red box - unpivot columns.

vyadongfmsft_0-1667872117951.png

 

You will get a table like this:

vyadongfmsft_1-1667872311687.png

 

Rename for every column:

vyadongfmsft_3-1667872696077.png

 

Append queries as new:

vyadongfmsft_4-1667872778636.png

vyadongfmsft_5-1667872819591.png

 

You will get a table like this:

vyadongfmsft_6-1667872842009.png

 

Replace "Data Integrity Review - Enhancements & Support" with "Spartans".

vyadongfmsft_0-1667873146942.png

 

I think this is the result you want:

vyadongfmsft_1-1667873198294.png

 

Best regards,

Yadong Fang

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

1 REPLY 1
v-yadongf-msft
Community Support
Community Support

Hi @KS12 ,

 

Transform data in Power Query: select the three columns inside the red box - unpivot columns.

vyadongfmsft_0-1667872117951.png

 

You will get a table like this:

vyadongfmsft_1-1667872311687.png

 

Rename for every column:

vyadongfmsft_3-1667872696077.png

 

Append queries as new:

vyadongfmsft_4-1667872778636.png

vyadongfmsft_5-1667872819591.png

 

You will get a table like this:

vyadongfmsft_6-1667872842009.png

 

Replace "Data Integrity Review - Enhancements & Support" with "Spartans".

vyadongfmsft_0-1667873146942.png

 

I think this is the result you want:

vyadongfmsft_1-1667873198294.png

 

Best regards,

Yadong Fang

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

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.