In case you missed the announcement: The Alteryx One Fall Release is here! Learn more about the new features and capabilities here
ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests Early 2026. Make sure to check your account preferences in my.alteryx.com to make sure you have filled out your security questions. Learn more here
Start Free Trial

Alteryx Designer Desktop Discussions

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

Read file name for data output

henrygeorge
8 - Asteroid

Hi I am reading a directory of excel files with specific sheet name "ABC123"

The file names of these excel files are "ABC 2023Dec30.xlsx" and "CO 02-02-2021.xlsx"

 

Excel 1 in Folder - ABC 2023Dec30.xlsx

 

   
   
No of CarsItem NoPerson
1212312Alex

 

Excel 2 in folder - CO 30-02-2021.xlsx

 

   
   
No of CarsItem NoPerson
15123131Mer

 

How do i output this data in these two files in a union (they both have same headers in the specific sheet "ABC123" starting from the 3rd row) and take the date as one of the outputs?

 

Desired Output :

No of CarsItem NoPersonDate
1212312Alex30-12-2023
15123131Mer30-02-2021
2 REPLIES 2
jrgo
14 - Magnetar

Not sure if this is what you're asking, but there's an option in the Input options to "Output File Name as Field". 

image.png

grazitti_sapna
17 - Castor

Hi@henrygeorge 

I have made Workflow for your Problem. Please Check.

If it works Kindly accept it as Solution.

Thanks

Sapna Gupta
Labels
Top Solution Authors