Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!
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.
| Id | JobId | AddressType | Address1 | Address2 | Address3 | City | State | PostalCode |
| 4387 | 2197 | 0 | 123 Road | 123 Street | 123 Address 3 | City | State | AB12 3CD |
| 4388 | 2197 | 1 | 456 Road | 456 Street | 456 Address 3 | City | State | EF45 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!
Solved! Go to Solution.
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,
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!
Vote for your favorite vizzies from the Power BI World Championship submissions!
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 58 | |
| 52 | |
| 40 | |
| 17 | |
| 16 |
| User | Count |
|---|---|
| 111 | |
| 109 | |
| 40 | |
| 33 | |
| 26 |