Advent of Code is back! Unwrap daily challenges to sharpen your Alteryx skills and earn badges along the way! Learn more now.
Free Trial

Alteryx Designer Desktop Discussions

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

Parsing Out Last Date when dates are entered in different formats

michsherm
5 - Atom

Trying to parse out the last date for each contact but the dates are all listed in inconsistent ways. Any suggestions using RegEx?

 

ContactDate
AA18 March, 2020 27 March  3 April
BB3/30/2020
CC3/23/2020  4/6/2020
DD3/18/20 & 3/23/20
2 REPLIES 2
BrandonB
Alteryx
Alteryx

You can split the rows off to different streams with filter tools when you have an & between the dates, a comma in the dates, a space between them, etc. Then these dates can be split on the delimiter. However, I am not sure about how to handle rows like the first one where you have multiple formats in the same cell. 

AbhilashR
15 - Aurora
15 - Aurora

Hi @michsherm, what would be the year for dates mentioned in first row (contact AA)? Broadly, I would parse out the individual dates into multiple rows to structure the data into unique key value pairs of Contact and Date, convert date string into standard Alteryx date format, finally filtering out the last date. 

Attached is an implementation of the approach. Hope this helps.

Labels
Top Solution Authors