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

Try your skills in the Power BI Dataviz World Championship! Round one ends June 26. Join now

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
Fabric Data Days is here Carousel

Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

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.