Dear All,
I would like to achieve the following in Alteryx:
- Read in several Excel files from a specified folder
- Extract the date (e. g. 20210720) from the excel file (date is contained in the file name of each excel file; see simplified example files below) and append this date in a separate column named "reporting period"
- Run my "normal workflow" for each single Excel file
- Repeat steps 1.-3. until all excel files contained in the source folder have been processed and run through the workflow
- Union the results
- Write the results back in a single excel table with one sheet containing all the results and delete all previous records contained in the excel table.
Example Input Files
All input files share the same file structure.
File 1_20210720.xlsx
Product | Value |
Tomato | 100 |
Apple | 250 |
Potato | 150 |
File 2_20210615.xlsx
Product | Value |
Apple | 100 |
Apple | 250 |
Pineapple | 150 |
Apple | 100 |
I have tried so far to use the "dynamic input tool" as well as the "Alteryx Holiday Gift of 2015 Read all excel worksheets macro" (https://community.alteryx.com/t5/Engine-Works/The-Ultimate-Alteryx-Holiday-gift-of-2015-Read-All-Excel/ba-p/5558) for the above mentioned purpose. Unfortunately these seem to be reading in all excel files first and afterwards run the "normal" workflow (once). This leads to wrong results in my workflow as this e. g. contains several summarize tools in which I would then have to include the "reporting period" as a "group by" criterium. As my workflow has become quite complex in the meanwhile, I would like to avoid this extra effort.
Instead, I would like to loop the workflow until each excel file has been read in, processed and write the results back to a single excel table that gets updated weekly.
Any help would be greatly appreciated!
Thanks in advance
Christopher