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
16 - Nebula
16 - Nebula

Formula should do the trick:

 

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

binuacs
20 - Arcturus

@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