Start Free Trial

Alteryx Designer Desktop Discussions

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

Input from file directory

Gsiva3
8 - Asteroid

Hi all,

 

I have a folder with 20 sub folders in it. In each sub folder I have a excel file with same name. Now I have took those excel files into the alteryx using Input file directory tool and dynamic input tool. Now what I want is, I want to generate a report by summarizing the content based on the sub folder name. Is there any possible to bring sub folders name as well as along with the data, so that I can differentiate the data based on the sub folders name? I have attached my sample input and my preferred output herewith. Please suggest me a method to this.

5 REPLIES 5
grazitti_sapna
17 - Castor

Hi @Gsiva3, in order to provide the subfolder name what you can do is when selecting input data source template in dynamic input tool , try this configuration and set output file name as field selecting full path then a new column with the path will be displayed then you can apply the transformation using regex tool

grazitti_sapna_0-1604292714172.png

grazitti_sapna_1-1604292927971.png

Output-

grazitti_sapna_2-1604293146803.png

 

I hope this helps.

 

Thanks.

Sapna Gupta
Gsiva3
8 - Asteroid

Hi @grazitti_sapna thanks for the reply!!!

 

When I am running the workflow in RegexOut1 column, only 3 is coming as data in all rows. I have attached the screenshot. Can you please help me with this.

grazitti_sapna
17 - Castor

Hi @Gsiva3 , try this.

 

grazitti_sapna_0-1604296674099.png

 

Another method.

grazitti_sapna_0-1604296823348.png

 

 

Sapna Gupta
Gsiva3
8 - Asteroid

Thank you @grazitti_sapna Got it!!!

grazitti_sapna
17 - Castor

@Gsiva3 , You are most welcome.

Happy to help 🙂

Sapna Gupta
Labels
Top Solution Authors