Bring your best ideas to the AI Use Case Contest! Enter to win 40 hours of expert engineering support and bring your vision to life using the powerful combination of Alteryx + AI. Learn more now, or go straight to the submission form.
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