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

Data Input from OLEdb : Previous 4 Weeks Data Pull

amckinney
5 - Atom

For my workflow, I have 5 OLEdb tables that I'm pulling data from, and due to the size of the data, I filter for the previous four weeks based on the 'Criteria' in the data input. Currently, I built an app where I enter the date in the 'YYYY-mm-dd' format, and it updates the date filter on the OLEdb data input for all 5 tables. I would like this to automatically run in server every week and always pull the previous 4 weeks. Is there a way to update the 'Criteria' in the OLEdb data input to always pull from the previous 4 weeks, rather than have to manually enter the date utilizing the app? 

2 REPLIES 2
cjaneczko
13 - Pulsar

Can you use the below?

 

Select * From "TABLE NAME" Where "DATE COLUMN" >= (SYSDATE -28) AND "DATE COLUMN" < SYSDATE
amckinney
5 - Atom

Unfortunately, that did not work. I kept getting an error that SYSDATE was not a field. I did try a DateAdd function and that appears to be working. 

Labels
Top Solution Authors