I am fairly new to Alteryx. Let say I want bring in sales by region for Sept-2015 with the Connect In-DB tool using the following SQL:
Select
Region,
Sum(Sales) As Sales
From
TABLE1
Where
MO_NUM = 201509
Group By
Region
At the end of the Connect In-DB tool there is an Output Data tool that creates a csv file named Sales_201509.csv.
My problem is this. The query above in my database runs fairly quick. But if I change the date range to 1 year, then it takes way longer than if I ran monthly queries 12 times and that problem gets incrementally worse as I add more years.
I want to know if I can do a macro that loops from 201401 thru 201412 and will change both the Where statement in the SQL and the name of the file in the output?