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
HappyHappyCoder
Regular Visitor

How to merge multiple rows into single cell using Power Query

Hi everyone, 
How can I merge multiple rows into a single cell? I need to use this in a CSV file and each cell holds alot of attribute info about the item, so I need to be able to condense tables into singular cells. 
This is the starting data: 

HappyHappyCoder_0-1675184362960.png
I'm exhausted... I can't cant farther than just comining "Column1" and "Column2" but I'm unable to find a way to do this with rows... Does anyone know of the correct function? 
Thank you so much for your time in advance, 
Best regards

 

1 ACCEPTED SOLUTION

The only way is to transpose your query > merge columns > transpose your query 

but if number of row change it will be difficult because power query need column name to merge... 

 

 

______________________________________________________

If you found this post helpful, please give Kudos C

View solution in original post

5 REPLIES 5
freginier
Super User
Super User

Does the number of lines change ?

 

______________________________________________________

If you found this post helpful, please give Kudos C

Yes the number of lines might change. So I would have to be able to do something like "Select whole Column1" and transcribe whole column into single cell.... 

The only way is to transpose your query > merge columns > transpose your query 

but if number of row change it will be difficult because power query need column name to merge... 

 

 

______________________________________________________

If you found this post helpful, please give Kudos C

It worked! Thank you so much 
Best regards,

Your welcome so you can accept as solution 😊

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.