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. Make sure to check your account preferences in my.alteryx.com to make sure you have filled out your security questions. 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

Creating new column based on the table name

Balrajh1
5 - Atom

Hi 

 

I am trying to create new column based on the table name as field (not file name)

 

ex: Excel sheet has Revenue, Expense as tabs name

I want to create field name as Type with Revenue as values. 

 

Type
Revenue
Revenue
Revenue

 

 

Thanks for the help

2 REPLIES 2
Thableaus
17 - Castor
17 - Castor

Hi @Balrajh1 

 

Get the Full Path instead of the File Name, and parse that out (you can use regex)


REGEX_Replace(Full Path, ".*\|\|\|(.*)", "$1")

 

Cheers,

bpatel
Alteryx Alumni (Retired)

hi @Balrajh1 ,

 

i am not entirely sure if this is what you are looking for but when bringing in the excel file you can select to import sheet names and use that to create your columns. 

 

bpatel_0-1574370913573.png

 

hope this helps or is on the right track! let me know!

Labels
Top Solution Authors