Get Inspire insights from former attendees in our AMA discussion thread on Inspire Buzz. ACEs and other community members are on call all week to answer!

Alteryx Designer Desktop Discussions

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

Automating Text To Columns

JamesKing
6 - Meteoroid

Hi,

 

I have a column containing a number of values separated by comas. These need to be separated into columns, however this number can vary widely therefore is there any alternative to the text to columns tool?

 

Input is

 

image.png

 

And the output i'm looking for is something along these lines

 

image.png

 

Thanks in advance!

3 REPLIES 3
Thableaus
17 - Castor
17 - Castor

Hi @JamesKing 

 

Here's a way of doing it

 

TileToolTTColumns.PNG

 

 

- Use Text to Columns to Split to Rows

- Use Tile Tool to group these values by your RecordID (with Unique method)

- Use Cross-Tab Tool and you'll be set.


WF attached.


Cheers,

 

Jonathan-Sherman
15 - Aurora
15 - Aurora

Hi @JamesKing,

 

You're right you wouldn't be able to do this using text to columns if the number of columns changes. But it could be achieved by tokenising through the regex tool and cross tabbing back as seen below:

 

image.png

 

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

 

Regards,

Jonathan

JamesKing
6 - Meteoroid

Wow that was quick! Both solutions work perfectly, thankyou!!

Labels