Community Spring Cleaning week is here! Join your fellow Maveryx in digging through your old posts and marking comments on them as solved. Learn more here!

Alteryx Designer Desktop Discussions

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

Loop through folder for each excel file perform save files individually to output folder

SAURABHGHOTKAR
7 - Meteor

Hi Team ,

 

In my Input file I have 4 excel files. 3 of which to be used for loop, they have same excel format/column sequencing.

 

The 4th file is for performing the Find & Replace operation. 

 

I want to create dynamic workflow where , Workflow reads X number of excel file, exclude 1 unique ( for Find & Replace) and perform the operation for each file, and save each file individually in Output folder.

 

I have attached folders for quick help. In Input folder 3 excel files are ( Jan, Feb & Mar). Help is required to understand how can I read the 3 files (*.csv) one by one and exclude file named ( C A Mapping_MM_DD_YYYY.xlsx).

 

Perform Find & Replace ( Jan file column D) with  C A Mapping_MM_DD_YYYY.xlsx ( column A) and add column in Jan file with column G from mapping file. 

 

Output is required to be saved at Output folder for each file separately. 

 

 

 

 

10 REPLIES 10
atcodedog05
22 - Nova
22 - Nova

Hi @SAURABHGHOTKAR 

 

Can you share desired output.

SAURABHGHOTKAR
7 - Meteor

Hi @atcodedog05 , please find attached desired out for 3 files. Column V is generated via Vlookup in excel vs C A Mapping_MM_DD_YYYY file. Thanks

Qiu
20 - Arcturus
20 - Arcturus

@SAURABHGHOTKAR 
See if this is what you need1016-SAURABHGHOTKAR.PNG

SAURABHGHOTKAR
7 - Meteor

Thanks @Qiu , request to share the output as separate files. Attached herewith excepted output folder. Thanks for suggestion. 

atcodedog05
22 - Nova
22 - Nova

Hi @SAURABHGHOTKAR 

 

Here is a workflow for the task.

 

Input Folder:

atcodedog05_0-1602838962730.png

Output Data:

atcodedog05_1-1602839007533.png

Output folder:

atcodedog05_2-1602839029688.png

Workflow:

atcodedog05_3-1602839048793.png

Hope this helps 🙂


If this post helps you please mark it as solution. And give a like if you dont mind 😀👍

 

atcodedog05
22 - Nova
22 - Nova

Hi @SAURABHGHOTKAR 

 

Check my solution.

SAURABHGHOTKAR
7 - Meteor

Hi @atcodedog05 

 

I am trying to get output in separate files and not in single file. With above solution it seems I can Read multiple input files, however , Output is populating in a single file. 

 

I want to create separate Output file for each month, like Jan_Output, Feb_Output etc

 

Thanks

atcodedog05
22 - Nova
22 - Nova

Hi @SAURABHGHOTKAR 

 

I have modified the workflow to reflect filename accordingly 

atcodedog05_0-1602840567496.png

Please check output folder and let me know.

atcodedog05
22 - Nova
22 - Nova

Happy to help 🙂 @SAURABHGHOTKAR 

 

Cheers and Happy Analyzing 😀

Labels