Free Trial

Alteryx Designer Desktop Discussions

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

Formula vs. Parse & Date

jalizmaldonado
8 - Asteroid

Hi, I went through several discussion posts regarding delimiters and trimming left and right but I'm not sure how to apply that in my case. 

 

I'm having to extract information from NCURP (ex:BEDD701221HNELXR06)

 

Day: 9 & 10 digit
Month: 7 & 8 digit
Year: 5 & 6 digit

Gender: 11 digit; M = F and H = M

 

Do I trim left and right then parse the date and gender to then use the datetime tool? I feel like I'm over complicating this. 

3 REPLIES 3
echuong1
Alteryx Alumni (Retired)

The easiest way to achieve this is with character counts in the regex.

 

echuong1_0-1614800812584.png

 

MarqueeCrew
20 - Arcturus
20 - Arcturus

Use substring()

 

BEDD701221

01234567890

 

substring([field],8,2)

 

substring([field],6,2)

 

substring([field],4,2)

 

cheers,

 

 mark

 

Alteryx ACE & Top Community Contributor

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

Hello @jalizmaldonado ,

 

It can be done with a substring.

 

Have a look at this and hopefully it will help

Labels
Top Solution Authors