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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! 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
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.