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.
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