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

Embedded newlines in multiple cells

Tbuff
5 - Atom

My data has multiple cells with embedded newlines in the example below.

Tbuff_0-1627579433277.png

 

I need to split each newline into a separate row so that the output looks like this -

Tbuff_1-1627579514203.png

 

I have tried the Text to Column tool with \n to split into rows and have also tried Regex to replace the \n with a delimiter, then a Text to Column tool to split each of the columns into rows. Both of these methods produce an output with duplicated records.

 

Any help would be greatly appreciated.

 

Thanks,

 

Tony

4 REPLIES 4
Luke_C
17 - Castor
17 - Castor

Hi @Tbuff 

 

Here's an example of this, you're on the right track with text to columns.

 

  1. I filtered out the empty records then transposed the data
  2. Then I did text to rows on the one column containing the values
  3. I used the tile tool to associate the different fields together
  4. Crosstabbed the data back

 

Luke_C_0-1627580821002.png

 

fmvizcaino
17 - Castor
17 - Castor

Hi @Tbuff ,

 

Here it is.

fmvizcaino_0-1627581056495.png

 

Best,

Fernando Vizcaino

atcodedog05
22 - Nova
22 - Nova

Hi @Tbuff 

 

Here is my take on it. I am splitting them separately and joining them.

 

Workflow:

atcodedog05_0-1627581110313.png

 

Hope this helps : )

 

Tbuff
5 - Atom

Thanks for all the help with this! All of your solutions resolved my issue.

Labels
Top Solution Authors