We are celebrating the 10-year anniversary of the Alteryx Community! Learn more and join in on the fun 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
18 - Pollux
18 - Pollux

Formula should do the trick:

 

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

binuacs
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