In case you missed the announcement: Alteryx One is here, and so is the Spring Release! Learn more about these new and exciting releases here!

Alteryx Designer Desktop Discussions

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

How to add a new column after the original column reaches a set max of characters

Vstang
5 - Atom

Hello,

I am trying to make a workflow where if my column called "Description" has over 30 characters the remaining characters go into a new column called Description 2 and once that column has over 30 characters the remaining characters go into a new column called Description 3. How would I do this?

5 REPLIES 5
ShankerV
17 - Castor

Hi @Vstang 

 

One way of doing this.

 

ShankerV_0-1682538898140.png

 

(.{5})(.{5})(.{5})

 

ShankerV_0-1682538924360.png

 

Note: I have used 5 characters for the use case, please replace 5 with 30 in your scenario.

 

Many thanks

Shanker V

ShankerV
17 - Castor

Hi @Vstang 

 

If your input data in not constant with 30 characters all over the samples, then the below can be applied.

 

ShankerV_0-1682539163700.png

(.{0,5})(.{0,5})(.{0,5})

 

ShankerV_1-1682539175575.png

 

Many thanks

Shanker V

 

 

binuacs
21 - Polaris

@Vstang another regex function

binuacs_0-1682547340441.png

 

Vstang
5 - Atom

Hello ShankerV,

It doesn't seem to be working. I still have more then 30 characters which includes spaces in the description column and nothing in the new columns. I am including a screenshot of what I am creating in Alteryx and also what is showing up. 

 

Vstang_0-1682549129832.png

Vstang_1-1682549296437.png

 

 

Vstang
5 - Atom

Hello,

Do I also need to include the record ID button or can I just do it with the just the RegEx?

Labels
Top Solution Authors