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 after December 31, 2025. Set up your security questions now so you can recover your account anytime, just log out and back in to get started. 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

Adding a column in the output file according to the input file

Nikkhil
6 - Meteoroid

Hi,

 

I have a few CSV files being sent by different systems. They are differentiated by the file name for example - file for system 1 and system 2 has name - file_system1.csv and file_system2.csv respectively. The files have same number of columns. 

 

The problem is that we have to manually add a column - Source_System, in each file before consolidating the files into one file. Is there a way to achieve this in Alteryx?

 

Thank you!

 

2 REPLIES 2
ChrisTX
16 - Nebula
16 - Nebula

In the Input Data tool, use the option for "Output File Name as Field".  Then use a Formula tool to get your System name from the file name.

 

ChrisTX_1-1593864901563.png

 

 

Chris

Nikkhil
6 - Meteoroid

Thank you, Chris. This is very helpful.

Labels
Top Solution Authors