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

Filtering out data prior to Jan 1st, 3 years ago

Rob_4142
7 - Meteor

Hey team!

Would anyone know an efficient way to create a dynamic filter that would filter out data prior to January 1st, 3 years ago? Filtering out data based on 3 years ago is pretty straight forward but what I'm unclear on is the "January 1st" part. Any ideas?

2 REPLIES 2
DataNath
17 - Castor
17 - Castor

Should be able to use a filter tool with the following:

 

[Date] < DateTimeTrim(DateTimeAdd(DateTimeNow(),-3,'year'),'year')

 

Before:

 

DataNath_0-1655390953725.png

 

After:

 

DataNath_1-1655390965659.png

 

Luke_C
17 - Castor
17 - Castor

Hi @Rob_4142 

 

Try this:

 

[Dates] != tostring(Datetimeyear(datetimetoday())-3) + '-01-01'

 

Luke_C_0-1655391058810.png

 

 

Labels
Top Solution Authors