Alteryx Designer Desktop Discussions

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

Text to Column Split

TomH1
6 - Meteoroid

I am having issues using Text to Column in order to split consecutive digits into two columns to ultimately run a chart of accounts. Is there also a way I can assign these fields a title (I.E. 11 = Current Asset, 12 = Non-Current Asset etc)

 

From

 

Field 1
110002
111003
123003
124001
210011
221003

 

 

To

 

Field 1Field 2
110002
111003
123003
124001
210011
221003
7 REPLIES 7
MarqueeCrew
20 - Arcturus
20 - Arcturus
How about....

Left([field],2)

And

Right([field],4)

As formulas for your two fields.

Cheers,
Mark
Alteryx ACE & Top Community Contributor

Chaos reigns within. Repent, reflect and restart. Order shall return.
Please Subscribe to my youTube channel.
TomH1
6 - Meteoroid

Thanks Mark, that worked well! Love your work.

 

Any idea how to now assign a title to consecutive digits? I.E. 11 = Current Assets, 12 = Non-Current Assets etc

 

Cheers,

Tom

MarqueeCrew
20 - Arcturus
20 - Arcturus
It depends on how many values that there are.

Switch([field],”Unknown”,’11’,’Current Assets’,’12’,’Non-Current Assets)

If there are many values you can use a Find and Replace Tool.

https://community.alteryx.com/t5/Alteryx-Knowledge-Base/Tool-Mastery-Find-Replace/ta-p/47042

Cheers,

Mark
Alteryx ACE & Top Community Contributor

Chaos reigns within. Repent, reflect and restart. Order shall return.
Please Subscribe to my youTube channel.
JoshKushner
12 - Quasar

You can use the select tool to rename the headers

 

Flow:

flow.PNG

 

Select:

select.PNG

JoshKushner
12 - Quasar

Nevermind, misinterpreted the question. @MarqueeCrew is spot on with the switch.

TomH1
6 - Meteoroid

Thanks mate, that's worked well.

azfersaeed
5 - Atom

@JoshKushner Select Tool is what I was looking for, thanks!

Labels