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
Anonymous
Not applicable

Merger Rows in columns Power Query

Hi Experts

 

is it possible to merger rows of data in a column similiar to excel in power query.....

Before:

 

Division	Location
9	New York
9	London
9	Toronto
10	New York
10	London
10	Florida
10	DC
8	Toronto
8	New York
8	London

After

 

Division	Location
9	New York
	London
	Toronto
10	New York
	London
	Florida
	DC
8	Toronto
	New York
	London

 

1 ACCEPTED SOLUTION

Hi @Anonymous,

 

You could have a good look at this video which shows the detail steps.

 

Best Regards,

Cherry

Community Support Team _ Cherry Gao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
v-piga-msft
Resident Rockstar
Resident Rockstar

Hi @Anonymous,

 

I'm afraid we may not transform your data model to be the same as you expected in Editor Query.

 

We could merge multiple rows into one row like below.

 

Capture.PNG

 

If you want get this output, you could refer to the expressions below.

 

   #"Grouped Rows" = Table.Group(#"Changed Type", {"Division"}, {{"Count", each _, type table}}),
   #"Added Custom" = Table.AddColumn(#"Grouped Rows", "Custom", each Text.Combine([Count][Location],",")),

 

Howeverm, I suggest you could create a matrix to show the data like below which is similar to your desired output.

 

Untitled.png

 

 

Best  Regards,

Cherry

Community Support Team _ Cherry Gao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

Thanks for the feebback Cherry

 

Capture.PNG

 

What are the steps to get the above......

Hi @Anonymous,

 

You could have a good look at this video which shows the detail steps.

 

Best Regards,

Cherry

Community Support Team _ Cherry Gao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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.