I have a list of files and their starting point for data row, some like this:
FileName | DataRowStartCounter |
c:/temp/file1.xlsx | 3 |
c:/temp/file2.xlsx | 6 |
I need to read this list and dynamically start processing reading data from the excel using the DataRowStartCounter. So as an example, file1.xlsx i will read from row#3 and file2.xlsx i will read from row#6.
I don't see an option of sending and using DataTowStartCounter in dynamic input data tool. Can someone please suggest a way.
Solved! Go to Solution.
Hi @DeepakTyagi
You can achieve this using Alteryx Batch Macro
Please see below. Hope it helps. Cheers!
Macro:
Hi @DeepakTyagi ,
For that, you will need to use a batch macro with 2 control parameters, one to change the file name and other to change the start import line. Be aware that your filename must include the sheet name or all sheet names must be the same, depending on the way you have configured your action tool.
To learn more about batch macros, here is a link: https://community.alteryx.com/t5/Alteryx-Designer-Knowledge-Base/Getting-Started-with-Batch-Macros/t...
To include this macro in your workflow, you can right click in your canvas and go to the last option.
Best,
Fernando Vizcaino
Hi, there is any solution to dynamically detect the first row of data, for example, if a field contains "date" it means that position should be the field row..?
Would help me a lot!
Thanks!