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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
Solution Specialist
Solution Specialist

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
PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

Top Solution Authors
Top Kudoed Authors