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

Editing SQL Query Dynamically with a cell reference from Excel

nickrosen28
7 - Meteor

Hi everyone,

 

I have a SQL query that inputs data that I need for a workflow I have running on a bi-weekly cadence. This query or small variations of the query appear 7-10 times in the workflow for various reasons, making it a pain/prone to error if I manually edit each time i run the WF.

 

The only thing that needs to be changed is the date for the query where I specify "WHERE date column BETWEEN '2024-11-01' AND '2024-11-30'"

 

Is there a way to do this to have all the query's change date range from referencing an excel cell?

 

I have watched YT videos, checked online/community site and feel like I am close, but not getting results.

 

Any help is appreciated!

Thanks

 

2 REPLIES 2
alexnajm
19 - Altair
19 - Altair

The Dynamic Input is your friend here! The Modify SQL query would be useful:  Dynamic Input Tool

Labels
Top Solution Authors