Let’s talk Alteryx Copilot. Join the live AMA event to connect with the Alteryx team, ask questions, and hear how others are exploring what Copilot can do. Have Copilot questions? Ask 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