Showing results for 
Search instead for 
Did you mean: 

Alteryx designer Discussions

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

Load multiple files from specific folders


Hi Community!

I need your help with loading multiple excel files into my workflow, but from specific folders.

In my parent folder there is a lot of subfolders containing excel files. However, I do not need the files from all the subfolders, only from some of the folders. More specifically all excel files from folders having "Week" in their folder name.


I have tried to apply a filter tool between my directory tool and macro.


Hope you can help me.



Alteryx Partner
Alteryx Partner

Try it this way. I just added to the directory to look files which have in the folder and all subfolders the word "Week*" (supposing your file starts with the word week). Then in the formula I looked for the same sheet "|||`Sheet1$` (again, supposing al your sheets are named the same).


PD: This only works if all your files have the same amount of columns and column names.


Hope it helps


I think the tool you want is dynamic input.

Use Contains([FullPath],"Week") to filter to only the folders you want.  Below is from the included  example for the tool. Except instead of North you'll use Week. Then feed into your Macro.



Hi again,


The files does not contain "Week" it is only the subfolders who do that. The excel files have different names.

Is there a way where I use your method, but instead of using the filename, I can filter for the subfolders who contain "Week"?


I think the way it is set up in my example above will work as it is setting the filter on the Full Path - not the file name. 

Alternatively, you could also set the filter on the directory field .


I am able to filter for the folders I need now, thank you. I have also tried to add the dynamic input. but since not all excel files contain the same amount of rows the flow will skip these files. Is there any workaround or modification to the dynamic input tool I can do? I have not worked with that one before. 


Hi Jonas,


I don't believe it can be done with the standard toolset. It can be done using a batch macro though. This post explains how to do so and includes a template macro you can modify.


Alteryx Partner
Alteryx Partner

No, the only way around would be creating a macro. The dynamic input acts as a union tool to copy all your files which follow the same structure. I would recommend you to either set the same format for all files or to create a macro with multiple dynamic inputs (1 for each kind of weekly report you have) and then unite them all with a multiple join tool


Thanks for your help guys.


I found a way to get the job done using your inputs, thanks again.