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

Best way to clean this set of data column

zenSMP
7 - Meteor

hi all,

 

what is the best way to clean this set of data?

 

Input is the actual data while output is the outcome i need.

Screenshot 2022-09-22 at 11.39.10 PM.png

5 REPLIES 5
DataNath
17 - Castor
17 - Castor

Is there any logic here? From a quick glance it doesn't look like there's any consistency or indication as to what should be removed and when/when it should be left untouched.

zenSMP
7 - Meteor

i think the requirement is that is there is anything that looks like date, we will remove the number and -

Example 1:

TDE Lap Tip Toe 2014-04-16-09-54-10TDE Lap Tip Toe
XLE  2014-04-24-11-41-12XLE

 

And the next requirment is if cell starts with T##( ## being number) extract the first T## and everything else is removed.

Example 2:

 

T01T01
T01-T02-220119T01
T26 Redo  2020-05-19-10-31-29T26
T57  2020-09-18-10-52-09T57
DataNath
17 - Castor
17 - Castor

@zenSMP how come this entry remains untouched? Or was that an error in the example provided?

 

DataNath_0-1663862801123.png

DataNath
17 - Castor
17 - Castor

@zenSMP jumping off my laptop for now but this gets you to pretty much what you're after, unless there are weird exceptions which require extra logic:

 

DataNath_0-1663864925676.png

zenSMP
7 - Meteor

arh, sorry thats an error on my end. you are right that should be

 

Popman-Estate-220119Popman-Estate-

 

 

Labels
Top Solution Authors