Alteryx Designer Desktop Discussions

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

Alteryx Transpose Data and Split Words

Andrew_Seaman
6 - Meteoroid

I have some text I need to transpose and separate out the words with.  Note some of the text can appear on multiple lines in the cell like.

 

"Sentence one.

 

Sentence two."

 

Here is my source data:

 

Andrew_Seaman_0-1626385625513.png

 

 

Here is my output:

 

Andrew_Seaman_1-1626385636110.png

 

4 REPLIES 4
Maskell_Rascal
13 - Pulsar

Hi @Andrew_Seaman 

 

So it looks like you don't need a transpose, but a Text to Columns set to Split to rows. To handle both a new line and spaces, we can configure the tool to handle both delimiters. 

 

Maskell_Rascal_0-1626386304025.png

 

When ran, the output appears to give the desired results. I even threw in a couple examples where a few cells had new lines embedded. 

Maskell_Rascal_1-1626386376495.png

 

Attached is a sample workflow for you to try. 

 

If this solves the problem please mark answer as correct, if not let me know!

 

Cheers!

Phil

 

MichaelSu
Alteryx Alumni (Retired)

Hi @Andrew_Seaman ,

 

See attached. You can use the text to columns tool and split by rows. \s is the delimiter for a space.

 

Thanks,

Mike

MichaelSu
Alteryx Alumni (Retired)

Didn't realize @Maskell_Rascal  has the solution as well. Both work!

 

Thanks,

Mike

apathetichell
18 - Pollux

@MichaelSuand @Maskell_Rascal are 100% correct but there is a contingent of us who want REGEX answers -and only REGEX answers, for them, may I suggest adding a record id and a regex tool set to tokenize and split to rows. Field should be [text] and the formula should say:

([a-z]+)

(with case insensitive checked)...

 

Once more the chaotic\sspirits of REGEX have been appeased.

Labels