Hello!
I am new to macro and I have a huge processing using batch macro that runs for 1 day at a time. (Batch macro = 1 day processing)
I want the same macro to run for 2 months and automate this run with another macro or a dynamic process.
What is the best way to make it dynamic and run it for 2 months without manually changing the Date_IDs?
For example:
I provide a Start_Date_ID = 7000 and End_Date_ID = 7060. I used the 'Generate Rows' tool to generate all the dates in between from 7000, 7001, 7002.....7059, 7060.
I want to iterate row by row.
First run - the macro passes 7000 and runs the Batch macro = 1 day processing- stores the data in Alteryx.
automatically pick the next row 7001 and run the Batch macro = 1 day processing- stores the data in Alteryx.
and continue till date_ID 7060. and finally compile all the results.
What would be the best way to achieve passing 1 DATE_ID at a time from a range and stop the processing at the END_DATE_ID? Is there a way to pass the difference between END_DATE_ID and START_DATE_ID (Which can change over time) and make the process run as many times as the difference? (I could not make iterative macro work 😣 )
I would appreciate any suggestions. Thanks!