Get Inspire insights from former attendees in our AMA discussion thread on Inspire Buzz. ACEs and other community members are on call all week to answer!

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