We are celebrating the 10-year anniversary of the Alteryx Community! Learn more and join in on the fun here.
Start Free Trial

Alteryx Designer Desktop Discussions

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

how to write a formula if days between dates is in range

Ksisterhen
8 - Asteroid

Hi-

 

I am trying to get the queue column to say "signed prior" if the date first signed is within the last year of datetime out or prior to datetime out or if date last signed is within the last year of datetime out or prior to date time out otherwise put what is already in the queue column

1 REPLY 1
Prometheus
12 - Quasar

@Ksisterhen I created a field called Last Year Date, which is DateTime_Out minus 1 year. Then I used this expression to populate "queue": 

if ([date first signed]>=[Last Year Date] and [date first signed]<=[DateTime_Out]) or ([date last signed]>=[Last Year Date] and [date last signed]<=[DateTime_Out])

then 'signed prior'

else [queue]

endif

Cond.PNG

Labels
Top Solution Authors