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

Join the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register 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
April Power BI Update Carousel

Power BI Monthly Update - April 2026

Check out the April 2026 Power BI update to learn about new features.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

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.

FabCon and SQLCon Highlights Carousel

FabCon & SQLCon Highlights

Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.