Free Trial

Alteryx Designer Desktop Discussions

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

Dynamic rename if column contains certain words

Jenina
8 - Asteroid

Hi All,

 

Can someone provide the correct expression, I just wanted to rename fields that contains a certain word

 

 

Thank you!

2 REPLIES 2
binuacs
21 - Polaris

@Jenina sample attached. In Alteryx the field name should be unique, it will not allow duplicate names, as per your requirement there might be chance to create duplicate field names

image.png

apathetichell
19 - Altair

I think @Jenina is asking for the dynamic replace to work like this:

if contains([_CurrentField_],"WFC YTD Entered Balance") then replace([_CurrrentField_],"WFC YTD Entered Balance","Gla Balance") else [_CurrentField_] endif.

that is the same as:

replace([_CurrrentField_],"WFC YTD Entered Balance","Gla Balance") - because if the verbiage is not included it cannot be replaced.

Labels
Top Solution Authors