Advent of Code is back! Unwrap daily challenges to sharpen your Alteryx skills and earn badges along the way! Learn more now.

Alteryx Designer Desktop Discussions

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

Add sheet name when importing multiple sheets

peterlyngvig
6 - Meteoroid

Hi

 

I am trying to create a workflow, where I import multiple sheets using the Dynamic Input function.

 

I have managed to include a column in the output, which says "2021" i.e. the file name, but I would also like to add a column, which includes the sheet name e.g. "1", "2" etc. In other words, my end game is to add two columns one with the file name and one with the sheet name, so I can filter the date based on where it origins.

 

See attached input file and workflow.

 

Appreciate your help :)


Best,

Peter

2 REPLIES 2
IraWatt
17 - Castor
17 - Castor

Hey @peterlyngvig,

In the dynamic input select output 'Full Path':

IraWatt_0-1664200631131.png

Then you can get both the file and sheet names with some parsing:

IraWatt_1-1664200818839.png

Any questions or issues please ask

Ira Watt
Technical Consultant
Watt@Bulien.com 

 

 

Emmanuel_G
13 - Pulsar

@peterlyngvig 

 

Find in attachement the way of doing that easily with regex tool.

 

You can extract the fullpath with sheet names of excel file and then extract desired informations as shown below.

 

Let me know if there is any issue and please do not hesitate to mark this answer as solution if it helped. 🙂

 

Emmanuel_G_0-1664201480898.png

 

Labels