Alteryx Designer Desktop Discussions

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

Records with one date after the other

jly3292014
7 - Meteor

I am trying to find any records (from the sample data attached) with DOCUMENT_DATE after RECORDING_DATE. After converting those two columns to date data type, I created a new column stating "IF [DOCUMENT_DATE]>[RECORDING_DATE] THEN 1 ELSE 0 ENDIF". However, I found no records. Please advise on how I can resolve the issue.

3 REPLIES 3
IraWatt
17 - Castor
17 - Castor

Hey @jly3292014,

First thing is Id make sure your dates are of Date datatype before comparing them like this:

IraWatt_0-1652973983888.png

Secondly I'd say that all your Documents dates are before the recording date so all 0's is correct

HTH,

Ira

 

DataNath
17 - Castor

This should work. I had to add another record to the bottom that would satisfy this, as the dates provided all returned a false from your check:

 

DataNath_0-1652974115050.png

 

binuacs
20 - Arcturus

@jly3292014 Another way of doing this with the Multi-Field formula

 

binuacs_0-1652974357297.png

 

 

Labels