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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! 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
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.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

Check out the February 2026 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 Solution Authors