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

Formula to pull Active Employees or terminated within last 35 days

melissa_grit
5 - Atom

Hello! I have tried the following, but  I am getting terminated employees to pull through that are from old years.

 

[Employee Status] in ('Active', 'On-Leave') or ([Termination Date]<=Datetimeadd(DateTimeToday(),-1, 'month'))

and 

[Employee Status] in ('Active', 'On-Leave') or ([Termination Date]<=Datetimeadd(DateTimeToday(),-35, 'days'))

 

What am I doing wrong? 

4 REPLIES 4
Ritesh_Parmar
6 - Meteoroid

 Hi, can you share few sample records ?

 

melissa_grit
5 - Atom

See attached screenshots. Thanks!

Ritesh_Parmar
6 - Meteoroid

HI, this should work

[Employee Status]="Active" or ([Employee Status]="Terminated" and DateTimeDiff(DateTimeToday(),[Termination Date],"DAYS")<36)


melissa_grit
5 - Atom

Thank you! This worked!

Labels
Top Solution Authors