In case you missed the announcement: The Alteryx One Fall Release is here! Learn more about the new features and capabilities here
ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests after December 31, 2025. Set up your security questions now so you can recover your account anytime, just log out and back in to get started. Learn more here
Start Free Trial

Alteryx Designer Desktop Discussions

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

Filter date column with 2 different formats

ShantanuDagar
8 - Asteroid

Hello,

 

I have a date column with dates in 2 different formats. They both can be simultaneously be present in 1 input dataset or might be present 1 at a time. There is also null values possibility.

 

The date formats or values are: 

 

16-MAY-12

2015-07-22

2023-04-21

[Null]

 

For the condition based on requirements I used the filter:

(DateTimeDiff(DateTimeNow(),[Date],"months") >= 6 OR IsNull([Date]))

 

And this was working pretty well when only 2nd, 3rd, and 4th types were present (yyyy-mm-dd and [Null]) but now with presence of types like 16-MAY-12 those values aren't filtering in.

2 REPLIES 2
dwstada
11 - Bolide

the obvious answer is to clean up your date column so you only have one format.

 

If you can't/don't want to change that column, create a new one with correct formatting and filter on this, then remove it afterwards

binu_acs
21 - Polaris

@ShantanuDagar You need to convert the date in to ISO format and appy the filter

image.png

Labels
Top Solution Authors