Text.Combine Seperators

Gwill1983

Board Regular
Joined
Oct 24, 2018
Messages
124
Office Version
  1. 365
Platform
  1. Windows
Hi all,

I have grouped my rows of data within power query to ensure that all of my customers orders are combined and the customer name only appears in my table once as below:

CustomerEmail AddressOrders
Joe Bloggs380370
Jon Smith380139; 380004
Alan Partridge380536; 380621

this is using the formula below:

= Table.Group(#"Filtered Rows", {"Customer", "Email Address"}, {{"Orders", each Text.Combine([Order Number], "; "), type nullable text}})

Obviously my seperator is "; " but I am trying to find out if there is anyway to split the orders to be on a seperate row within a cell
(ie rather than 380139; 380004 become
380139
380004)

Some customers have alot of orders and the cells become a bit tricky to read with so many numbers alongside each other.

This table is being used for a mail merge to email customers about their orders

Any help is welcomed as I am very new on power query.

Thanks
 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
Power Query:
Text.Combine([Order Number], "#(lf)")
Thanks alot! That did exactly what I wanted and it looks great in the query editor, but when I close and load my table hasnt changed and the order numbers are just a long number with no seperators!
 
Upvote 0
Thanks alot! That did exactly what I wanted and it looks great in the query editor, but when I close and load my table hasnt changed and the order numbers are just a long number with no seperators!
Select column ( in excel) and click "Wrap text" on menu
 
Upvote 0

Forum statistics

Threads
1,223,246
Messages
6,170,988
Members
452,373
Latest member
TimReeks

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top