Alteryx designer Discussions

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

Convert first letter into upper case

Highlighted
Bolide

Hello,

 

I would like to convert first letter into Upper case and rest is lower case.

For example:

 BeforeAfter
1APPLEApple
2bananaBanana
3LeMoNLemon

 

I could use text to column tool and separate the first letter and the rest of letters. And I convert the first split into upper case, then the second split into lower case.  Then combine them together.  However, I am wondering if there is simpler way to convert the fist letter into Upper case at once.

 

Sincerely,

Kazumi

Highlighted
Alteryx Certified Partner
Alteryx Certified Partner
Titlecase([Before])

That should work.

Alteryx ACE & Top Community Contributor

Chaos reigns within. Repent, reflect and reboot. Order shall return.
Alteryx Alumni (Retired)

I would use the following Expression...

 

Uppercase(Left([Data], 1)) + Lowercase(Substring([Data],1,100))

 

The "100" at the end should be the maximum length of the string.

Highlighted
Alteryx Alumni (Retired)

@MarqueeCrew

Dang, I make things so complicated. ;-p

I always forget about the TitleCase() function.

Highlighted
Alteryx Certified Partner
Alteryx Certified Partner

Really @RodL?

 

Maybe I returned the favor to you.

Alteryx ACE & Top Community Contributor

Chaos reigns within. Repent, reflect and reboot. Order shall return.
Highlighted
Alteryx Certified Partner
Alteryx Certified Partner

titlecase() is definitely the way to go here, but we could also make RodL's formula dynamic (rather than stating the number of characters) by doing the following...

 

uppercase(left([Data],1)) + lowercase(right([data],length([data])-1))

Highlighted

I would like to suggest our new online case converter.

 

Highlighted
Alteryx Certified Partner

Why would we use a third-party web-app over just a formula?

Labels