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

Visual Query Builder - 'datetime Criteria' -x days

DM_88
6 - Meteoroid

Hi all

 

Via input, I want to reduce the amount of data by adding a criteria in the visual query builder that goes 60 days back.

 

The column formatting = datetime: 'yyyy-mm-dd hh:MM:ss'

 

DM_88_0-1632481309870.png

 

Thanks a lot!

 

Kind regards

DM_88

3 REPLIES 3
Hilde_Heggen
5 - Atom

I have the same issue, curious about how to include a relative date criteria, so following over here. 

Christina_H
14 - Magnetar

The syntax might depend on the data source you are connecting to.  I'm connecting to a SQL server, and this works:
> DateAdd(day, -60, GetDate())

Hilde_Heggen
5 - Atom

That's the solution I was looking for. Thanks a lot!

Labels
Top Solution Authors