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

How can I change my query dinamically?

sebenciven
8 - Asteroid

sebenciven_0-1663835387336.png

Good Morning.

 

This is my workflow project.

 

In input tool I do a query where:

 

SELECT * FROM TABLE

WHERE DATE='20220930'

 

Date value is a DEFAULT.

I use Dynamic Input to change a string of my query (specifically 20220930) and the text box Interface to allow to user to insert a Date. In my idea the Interface value must change the date (so I don't operate on workflow) but the output has always the 20220930 data.

Can anyone help me? 

Thanks!

 

2 REPLIES 2
davidskaife
14 - Magnetar

Hi @sebenciven 

 

Is there a particular reason you're using the Dynamic Input tool? You should be able to discard it and connect the action tool directly to the input tool, and update the date within that SQL statement, i've attached a screenshot of a similar example I've done using a control parameter:

 

DavidSkaife_0-1663837874875.png

 

 

 

sebenciven
8 - Asteroid

Good Morning.

 

No there isn't a reason for that. I saw it on the community.

I would change the date in the input tool because the query SELCT * FROM TABLE is too heavy for Alteryx.

 

I'll try.

 

Thnaks a lot.

Labels
Top Solution Authors