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
Renosaur
New Member

Group and Concatenate

I'm a new user and struggling to find a way to do this through various ways of grouping and concatenating for my desired result (and AI has been no help!). I can usually work things out but getting desparate with this one.

 

I have a spreadsheet with manager names in column A, their email addresses in column B and direct report in column C. 

 

I want to concatenate the direct report names so each manager name appears only once and all their direct reports are concatenated into a cell with a comma delimiter.

 

Current state:

Manager nameManager emailDirect report
Bob Brownbob@jonesSarah L
Bob Brownbob@jonesKyle N
Bob Brownbob@jonesBob B
Bob Brownbob@jonesRenee Z
Nick Cavenick@cavePolly H
Nick Cavenick@caveHenry L

 

Desired state

Manager nameManager emailDirect report
Bob Jonesbob@jonesSarah L, Kyle N, Bob B, Renee Z
Nick Cavenick@cavePolly H, Henry L

 

 

 

 

 

 

 

 

 

1 ACCEPTED SOLUTION
MarkLaf
Super User
Super User

This can be done with Group By and customizing the aggregation that gets performed. Instead of returning all rows or for example a Min agg, we can use Text.Combine. Given the table you provided, the M in this step would give you your desired output

 

= Table.Group(Source, {"Manager name", "Manager email"}, {{"Direct Report", each Text.Combine( [Direct report], ", " ), type nullable text}})

 

Output with test data:

MarkLaf_0-1741163457955.png

 

View solution in original post

2 REPLIES 2
MarkLaf
Super User
Super User

This can be done with Group By and customizing the aggregation that gets performed. Instead of returning all rows or for example a Min agg, we can use Text.Combine. Given the table you provided, the M in this step would give you your desired output

 

= Table.Group(Source, {"Manager name", "Manager email"}, {{"Direct Report", each Text.Combine( [Direct report], ", " ), type nullable text}})

 

Output with test data:

MarkLaf_0-1741163457955.png

 

Spectacular. That worked. Thanks a million!

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