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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
WingsGSE
Regular Visitor

Group data (addresses) from two rows into one but with separate columns - going mad!

Hi!

 

I am using data imported from our SQL server - it's showing the Collection address (6 columns) and Delivery address (6 columns) in two separate tows, with the job ID as the common denominator. I need to group these into one row but separate columns (such that I can then rename them as Collection Address 1, 2, 3, Collection City, Delivery Address 1, 2, 3, Delivery City etc) on one row.

 

IdJobIdAddressTypeAddress1Address2Address3CityStatePostalCode
438721970123 Road123 Street123 Address 3City StateAB12 3CD
438821971456 Road456 Street456 Address 3City  StateEF45 6GH

 

I have been attempting this with the Group By function but I'm going wrong somewhere as it's mixing up the two addresses.

 

Can anyone kindly point me in the right direction?

 

Thanks!

1 ACCEPTED SOLUTION
rsbin
Super User
Super User

@WingsGSE ,

This can be done in Power Query using the Merge Queries function.

I have attached a pbix file so you can easily see the steps to accomplish your ask.

Hope this is the result you are looking for.

Regards,

View solution in original post

3 REPLIES 3
rsbin
Super User
Super User

@WingsGSE ,

This can be done in Power Query using the Merge Queries function.

I have attached a pbix file so you can easily see the steps to accomplish your ask.

Hope this is the result you are looking for.

Regards,

I cannot thank you enough!

@WingsGSE ,

You just did.

Thx and Best Regards,

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 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
Top Kudoed Authors