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 Early 2026. 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

How to replace string values

romachainani
6 - Meteoroid

I have a column that has these values:

 

abc_def

abc

lmn_op

lmn

 

In the example above: 

I want abc and lmn to be capitalized but I want abc_def and lmn_op to remain as is:

 

abc_def

ABC

lmn_op

LMN

 

How would I go about doing this?

Thank you!

 

5 REPLIES 5
alexnajm
19 - Altair
19 - Altair

Formula should do the trick:

 

IF !Contains([Column],"_") THEN Uppercase([Column]) ELSE [Column] ENDIF

binu_acs
21 - Polaris

@romachainani One way of doing this

Screenshot 2023-07-20 210826.png

ShankerV
17 - Castor

Hi @romachainani 

 

One way of doing this.

 

Screenshot 2023-07-21 014001.jpg

 

Many thanks

Shanker V

MilindG
12 - Quasar
romachainani
6 - Meteoroid

Thank you so much binuacs!

 

 

Labels
Top Solution Authors