Let’s talk Alteryx Copilot. Join the live AMA event to connect with the Alteryx team, ask questions, and hear how others are exploring what Copilot can do. Have Copilot questions? Ask 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