Alteryx Designer Desktop Discussions

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

Filtering out illogical values

jmyjak
5 - Atom

Hello Alteryx Community,

 

I'm trying to find tool or formula that can help me find illogical year values in date time. For example if year is a value “0000” or “9999”.

 

I would like to highlight values that are not matching and filter them out for future investigation. 

 

I would be grateful for any tips! 

3 REPLIES 3
messi007
15 - Aurora
15 - Aurora

@jmyjak,

 

You can use filter tool with contains function.

 

messi007_0-1640000070302.png

 

Attached the workflow,

Regards,

Qiu
20 - Arcturus
20 - Arcturus

@jmyjak 
I think you dont literally mean 0000 or 9999, rather than a common sense of year should be.

The next question is what will be common sense?
I think the alteryx gives a reasonable definition as below.

DateTime Functions | Alteryx Help


%YAll four digits of the year ("2016").2 or 4 digits are read. 2 digits are mapped to a range of the current year minus 66 to the current year plus 33. For example, in 2016, that's 1950 to 2049.

1220-jmyjak.PNG

jmyjak
5 - Atom

Thanks so much!!! Is there a way to avoid using column [Year]? 

Labels