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 Cloud Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Cloud.
SOLVED

How to add file name as a column in Data set

KaterinaSimerdova
7 - Meteor

Hello,

 

can you please advise how to add file name as a column of the data input?

I only found option for Desktop version of Alteryx..

 

Thank you!

9 REPLIES 9
alexnajm
18 - Pollux
18 - Pollux

Currently not an option that I am aware of - you'll need to create it manually with a Formula tool

KaterinaSimerdova
7 - Meteor

Thank you, Alex, for your reply!

 What do you mean to create it manually using formula? Thank you.

alexnajm
18 - Pollux
18 - Pollux

Create a column in a Formula tool and hardcode it as the file name that you have - "File name.xlsx" or whatever you want to type

KaterinaSimerdova
7 - Meteor

I think I understand.. but my problem is that it is not just one excel.

I've loaded a folder with excels and I'm adding every month new excel to it. Name is YYYY MM_NAME.csv.

And I would need name of the csv files in the data set (because of the date..)

alexnajm
18 - Pollux
18 - Pollux

I'm confused - Are you using Designer Cloud? That's where this question is posted

alexnajm
18 - Pollux
18 - Pollux

At this stage, you'll need to show us more about your current state for us to help - I am just shooting in the dark based on the information provided

KaterinaSimerdova
7 - Meteor

Yes, I'm using Designer Cloud.. I will try to better explain..

 

  1. I connect to data using Azure Data Lake Storage
  2. I create Data set connecting to a folder that contain multiple csv files.

Those csv files are named YYYY MM_FILE NAME.csv.

I would need to add the file name in the date set, so that I'm able to get the period,

the result should be following:

 

file name (to extract period from the nameCOLUMN1COLUMN2COLUMN3
01/01/2025xxx1000MrS
01/01/2025yyy500MrS
01/02/2025yyy200MrsT
01/02/2025aaa1000MrS
    

 

 

alexnajm
18 - Pollux
18 - Pollux

Unless the input data tool in cloud has the ability to output file name as a field for Azure Data Lake specifically, I don't think this is possible - I can't test as we don't have it but I tried with a couple different connections and I don't see the ability to have the original source as a column

 

You can submit a ticket with Alteryx support to confirm

KaterinaSimerdova
7 - Meteor

Thank you very much for your time and replies, Alex!