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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
jerryr125
Helper III
Helper III

Single record with concatenated data (field)

Hi - 

I have the following data in which I would like to run through Power Query to create a single record for each ID.

 

Example:

 

Data Start (Table A)

IDItem
1Pizza
1Hamburger
2Banana
3Ice Cream
3Pizza
3Apple
3Bread
4Rice
4Pasta


New Table (Table B) - after running through Power Query:

 

,

IDItem
1Pizza; Hamburger
2Banana
3Ice Cream; Pizza; Apple; Bread
4Rice; Pasta



Any thoughts on how this can be accomplished ?

Thanks - Jerry

1 ACCEPTED SOLUTION
Omid_Motamedise
Super User
Super User

right click on the Id column and pick group by command and make the setting presented in the next image

Omid_Motamedise_0-1728340058902.png

 

 

 

press ok will result in error in the new column as it is not posible to apply sum operation on the text as the next

 

Omid_Motamedise_1-1728340101633.png

 

 

in the formula replaced list.sum by Text.combine to reach the next

 

Omid_Motamedise_2-1728340139180.png

 

 

if you want to use seperator also write the formula as bellos.

 

Text.Combine([Item],"; ")

 

 

 

 

 

 

If my answer helped solve your issue, please consider marking it as the accepted solution. It helps others in the community find answers faster—and keeps the community growing stronger!
You can also check out my YouTube channel for tutorials, tips, and real-world solutions in Power Query with the following link
https://youtube.com/@omidbi?si=96Bo-ZsSwOx0Z36h

View solution in original post

4 REPLIES 4
Anonymous
Not applicable

Hi @jerryr125 ,

Both answers of @p45cal and @Omid_Motamedise are great! Please remember to accept the reply as solution if you have solved your problem to help more others facing the same problem to find a solution quickly, thank you very much!

Best Regards,
Dino Tao

Omid_Motamedise
Super User
Super User

right click on the Id column and pick group by command and make the setting presented in the next image

Omid_Motamedise_0-1728340058902.png

 

 

 

press ok will result in error in the new column as it is not posible to apply sum operation on the text as the next

 

Omid_Motamedise_1-1728340101633.png

 

 

in the formula replaced list.sum by Text.combine to reach the next

 

Omid_Motamedise_2-1728340139180.png

 

 

if you want to use seperator also write the formula as bellos.

 

Text.Combine([Item],"; ")

 

 

 

 

 

 

If my answer helped solve your issue, please consider marking it as the accepted solution. It helps others in the community find answers faster—and keeps the community growing stronger!
You can also check out my YouTube channel for tutorials, tips, and real-world solutions in Power Query with the following link
https://youtube.com/@omidbi?si=96Bo-ZsSwOx0Z36h

excellent information - thank you !

p45cal
Super User
Super User

p45cal_0-1728316366014.png

 

let
    Source = Excel.CurrentWorkbook(){[Name="JerrysTable"]}[Content],
    GroupedRows = Table.Group(Source, {"ID"}, {{"Item", each Text.Combine(_[Item],"; ")}})
in
    GroupedRows

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

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 Kudoed Authors