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

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