Let’s talk Alteryx Copilot. Join the live AMA event to connect with the Alteryx team, ask questions, and hear how others are exploring what Copilot can do. Have Copilot questions? Ask here!
Start Free Trial

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.
SOLVED

CSV Input - Remove Line Break, split to column

kliwag
5 - Atom

Having trouble inputting a CSV that has cells with line breaks.  Hoping to be able to take the multi lined cell and split into columns.  Any help would be appreciated.  Have tried some regex solutions to similar problems in the community but no luck.

5 REPLIES 5
jastamme
7 - Meteor

Not sure but does this work for you. Just replace the line break with a comma and then split the columns out using the commaimage.png

KGT
13 - Pulsar

Yep, as @jastamme said!

 

Is AlteryxResult.png your input data? In that case, it's an issue with your config on the Input Tool. Make sure to "Ignore delimiters in quotes".

 

If the data is read in with things in the correct cells, then the easy way to blow out to lines is using the Text to Columns tool (possibly with "Split to rows" selected, then crosstab) and the delimiter set as "\n" with no quotes of course. 

 

kliwag
5 - Atom

Yea the alteryxresults.png was my input data. but 'ignore delimiters in quotes' was already set. Have also been playing with the AMP only options as well.

 

 

input.png

OllieClarke
16 - Nebula
16 - Nebula

@kliwag 
If you want a RegEx solution, and you know there will always be a fixed amount of columns (like the 3 in this case). Then you can use Tokenise 

You input tool will look like this:
image.png

And your workflow will look like this:
image.png

Tokenising on 

[^\n]+

Will put all consecutive non-newlines into a column, and then make a new column after each newline

 

Hope that helps,

 

Ollie

kliwag
5 - Atom

@OllieClarke that did it!  Thanks Ollie and all.

Labels
Top Solution Authors