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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
SeanB004
Frequent Visitor

Power Query Merge on multiple columns

Hi all, 
I have 2 tables one with activities and employee ids and another with employee id and full name of employee. I need to merge the Activities table to the employees table to get the full name. The trick is the activities table has multiple columns with id's.:
Activities table

SeanB004_0-1718311677396.png


Employees table:

SeanB004_1-1718311885390.png

The end goal is to merge the 2 tables to get the full names into one row but separated by a comma delimiter in the Activities table.

SeanB004_3-1718312105576.png

 

 



1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @SeanB004 

 

First, for each ID column in the table, you'll need to perform a merge operation with the table.

vjialongymsft_0-1718329631416.pngvjialongymsft_1-1718329655909.png

 

 

After merging, you will have additional columns containing the full names. You may need to expand these columns by clicking the button on the header of the merged column. Then add a custom column where you concatenate the full names from the expanded columns, separating them with a comma. Use the formula like

vjialongymsft_2-1718329791609.png

Result:

vjialongymsft_3-1718329917605.png

 

 

 

 

 

Best Regards,

Jayleny

 

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
Anonymous
Not applicable

Hi @SeanB004 

 

First, for each ID column in the table, you'll need to perform a merge operation with the table.

vjialongymsft_0-1718329631416.pngvjialongymsft_1-1718329655909.png

 

 

After merging, you will have additional columns containing the full names. You may need to expand these columns by clicking the button on the header of the merged column. Then add a custom column where you concatenate the full names from the expanded columns, separating them with a comma. Use the formula like

vjialongymsft_2-1718329791609.png

Result:

vjialongymsft_3-1718329917605.png

 

 

 

 

 

Best Regards,

Jayleny

 

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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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