Free Trial

Alteryx Designer Desktop Discussions

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

Splitting the column in to two parts

sriniprad08
11 - Bolide

Hi Team,

Hope you are well. I need a help.

acc_key

190007307030002021
190007307130002021
190007307230002021
190007307330002021
190007307430002021
190007307530002021
51058616212019
51058616222019
51058616232019
51058616242019

 

I would like to create two new columns and split the above column into two by extracting the last 4 digits

For e.g

 

Acct

1900073070

5105861621

 

year

2021

2019

 

Please let me know your thoughts,

thanks,

Sri

2 REPLIES 2
RishiK
Alteryx
Alteryx

@sriniprad08 have a look at the attached. I used the Right function in the formula tool to take the year from the end. 

You can use the substring function to get the Acct.

 

RishiK_0-1627202981521.png

 


Have a look at this link on string functions in Alteryx:

https://help.alteryx.com/20212/designer/string-functions#:~:text=A%20string%20function%20performs%20....

atcodedog05
22 - Nova
22 - Nova

Hi @sriniprad08 

 

Here is a Regex method.

(.+)(\d{4})

 

Last 4 in the second column and rest in first column.

 

Workflow:

atcodedog05_0-1627203401672.png

 

Hope this helps : )

 

Labels
Top Solution Authors