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. Set up your security questions now so you can recover your account anytime, just log out and back in to get started. 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

Dynamic Rename - Remove prefix using "%" wildcard?

msedrech0114
7 - Meteor

Is there any way for dynamic rename tool to apply a wild-card?

 

In a cross-tab output, I want the date columns to be sorted hence I prefix the date. But in the end, I want to dynamically rename columns to remove the prefix "_Test_%" (i.e. remove all strings preceding "_Test_" so only Dec_2017, Jan_2018, so on remain as column names. 

 

2017_12_01_Test_Dec_20172018_01_01_Test_Jan_20182018_02_01_Test_Feb_2018

 

 

Any suggestions.

 

Greatly appreciate your help.

 

Thank you
Mark

2 REPLIES 2
CharlieS
17 - Castor
17 - Castor

Since the prefix string is a set length, you could just remove the first 16 characters of the names.

 

Dynamic Rename Formula: 

substring([_CurrentField_],16) or right([_CurrentField_],8)

 

 

 

msedrech0114
7 - Meteor

Thank you Charlie S, it works! 

Labels
Top Solution Authors