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.

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