Bring your best ideas to the AI Use Case Contest! Enter to win 40 hours of expert engineering support and bring your vision to life using the powerful combination of Alteryx + AI. Learn more now, or go straight to the submission form.
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

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