ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests Early 2026. Make sure to check your account preferences in my.alteryx.com to make sure you have filled out your security questions. 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

Relative Date Filter Question

Tessa_Gable
7 - Meteor

I've been trying to create a custom filter criteria that will return records that have an activity date less than the last 60 days, or an activity date of null.

 

I expect to see this but all I'm getting is the nulls

Invoice      Last Activity      Workflow run time
AA             2019-04-19      2019-08-21
BB             2019-05-21      2019-08-21
CC            (Null)                2019-08-21
EE            (Null)                2019-08-21
FF            (Null)                2019-08-21

 

Any help would be greatly appreciated.

2 REPLIES 2
lmorrell
11 - Bolide

Hi @Tessa_Gable 

 

These date filters can get pretty confusing! However, by subtracting 60 days from fWorkflow (To give us the lower limit of your cut off) and then specifying that the last activity is greater than this date your filter will act as intended. This can be done by putting the formula below into your filter.

Datetimeadd([fWorkflowDate],-60,'days') >= [Last Activity]  OR IsNull([Last Activity])

 

If you wanted to recreate this filter without creating a column, you can use the below:

Datetimeadd(datetimenow(),-60,'days') >= [Last Activity]  OR IsNull([Last Activity])

 

The updated workflow is attached.

 

Hope this helps

 

Tessa_Gable
7 - Meteor

Awesome, it worked...Thanks so much.  

Labels
Top Solution Authors