Bring your best ideas to the AI Use Case Contest! Enter to win 40 hours of expert engineering support and bring your vision to life using the powerful combination of Alteryx + AI. Learn more now, or go straight to the submission form.
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