Alteryx Designer Desktop Discussions

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

Splitting Delimited Data from a Single Cell into Multiple Related Rows

John_Lovelace
5 - Atom

Help! We have a need to manipulate some input data into related rows and columns. We've exhausted our attempts with the 'text to column' but we seem to reach a dead-end achieving the desired outcome. 

 

The input file is attached. It is a series of database tables and associated fieldnames. Obviously the pipe is a delimiter. In the first row 'field one' in the 'Fields Used' column matches to 'table one' in the 'Table Used' column; 'field two' to 'table two' and so on.

 

In the second row, the same thing. One wrinkle though; we have a second delimiter - a blank space - which is really two fields related to a single table. Example, what appears to be 'EFFDT EFFSEQ' is two separate fields related to the PS_JOB in the 'Table Used' column.

 

The expected outcome is in the attached file, also.

 

I hope this makes sense.

 

Any assistance would be greatly appreciated.

 

Cheers,

John

 

6 REPLIES 6
mceleavey
17 - Castor
17 - Castor

Hi @John_Lovelace ,

 

this is a simple matter of splitting each column to rows based on the delimiter and smooshing back together on record position:

 

mceleavey_0-1619625949383.png

Workflow attached.

 

Hope this helps.

 

M.



Bulien

DQAUDIT
9 - Comet

@John_Lovelace 

 

For the Field Used column that has your double delimiter I would consider using two text to column tools.  The first parses out the pipe and the second parses out the space. You could then use a Transpose tool to get those columns generated by the space delimiter in a single column.

 

Good luck!

RaviP
8 - Asteroid

Hi @John_Lovelace 

 

Hope the attached flow works

 

RaviP_0-1619626150810.png

 

apathetichell
18 - Pollux

note - i pasted in your input instead of using the excel.

John_Lovelace
5 - Atom

Hello @mceleavey Our developer was almost there, but your assistance helped him get to the goal line! Thank you!

 

PS: First time user of the Community - this is great!!

mceleavey
17 - Castor
17 - Castor

no problem.gif

 

And welcome to the community!

We're always here if you need anything else.

 

M.



Bulien

Labels