We are celebrating the 10-year anniversary of the Alteryx Community! Learn more and join in on the fun here.
Start Free Trial

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.

Batch Macro - collect Excel Files from the Same Folder and Output to a Single file

hcho
8 - Asteroid

I am working on a use case that involves running a batch macro, but I’ve found it challenging due to the nature of my inputs, which are two distinct types: "data" and "requirements."

  • The "data" inputs are Excel files in a specific input folder.
  • The "requirements" file specifies which data files need to be analyzed and the criteria for each.

Although the input folder might contain additional files, I need to process only the specific files listed in the "requirements" file.

I’ve completed the criteria testing within the `FilterAndRender` macro. My goal is to process the files one by one, based on the unique entries in the requirements file until all specified files have been processed.

I have attached the Alteryx Workflow Package (.yxzp) file, which includes all necessary inputs, macros, and an example output.

The final output should be a single Excel Workbook (.xlsx), with each processed file’s results saved in separate tabs, named after the corresponding input file.

 

1 REPLY 1
shancmiralles
11 - Bolide

Have you tried using the directory tool? thanks!

Labels
Top Solution Authors