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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

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
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.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.