Im new to Alteryx and im trying to implement the following:
1. Get today's month
2. Pass 1. as param into SQL statement to filter records
3. Other transformation after node 2.
Is there any parameter function tools in Alteryx that could help for 1. and 2.?
Solved! Go to Solution.
@chunh Look into the dynamic input tool. You are able to create a sql query within it but use it to update the where clause based on the inputs. Use a formula tool before it to get todays month with the formula DateTimeMonth(DateTimeToday()) then pass it into the where clause in the dynamic input tool.
thanks a lot. Just curious for Input tool, since it requires an incoming connection. Is it a best practice to link it to an empty table in Alteryx just to be able to use get date?
@chunh @You have 2 options with this -
i would use the text input option as it’s simpler.
if this works for you, please mark as the solution so others may find it sooner.
I do this via dynamic input in-db. that takes two terms:
1) your connection name
2) your query.
your query is a string. you set that up in earlier tools using whatever parameters/syntax you want.