Alteryx Designer Desktop Discussions

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

Text to column/Parsing Question

znooredeen004
7 - Meteor

Hi All,

 

See the sample excel file that I uploaded.

 

Essentially I would like to separate out the data in the State, Income and Tabs by the delimiter | however this seems complicated with corresponding columns to take into account.

 

For example using John it should be

Name                 State                Income         Tax

John                   Alabama          4000              250

John                   Arizona            5000              350

John                   New York         2000              150

John                   Georgia           10000             600

 

Is Alteryx capable of something like that?

 

If not Alteryx is there another application I could use?

4 REPLIES 4
CharlieS
17 - Castor
17 - Castor

Oh yeah, Alteryx can do that.

 

I will offer a word of caution that this will depend on the the same number of elements being available in each field. Otherwise, the position-based transformation breaks down without other rules in place. 

 

20200205-PositionParse.png

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Check out the attached workflow to see this in action.

znooredeen004
7 - Meteor

Thank you!

MarqueeCrew
20 - Arcturus
20 - Arcturus

@znooredeen004 ,

 

An ALTERNATIVE solution to the one that my friend, @CharlieS provided is attached.  It is dynamic and will perform this task on an unlimited set of fields.  Like Charlie's solution, it does assume that the number of values per field match.  But, I think that it will still work.  Maybe it's worth a test and possible another solve that I can carve into my laptop.

 

Cheers,

 

Mark

Alteryx ACE & Top Community Contributor

Chaos reigns within. Repent, reflect and restart. Order shall return.
Please Subscribe to my youTube channel.
znooredeen004
7 - Meteor

@marqueecrew

 

I tried this method and it worked as well. Although it was a bit longer, it seems like it will work over a greater number of rows. Thanks as well!

Labels