Advent of Code is back! Unwrap daily challenges to sharpen your Alteryx skills and earn badges along the way! Learn more now.
Free Trial

Alteryx Designer Desktop Discussions

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

Returning first letter in a string

fahmed18
5 - Atom

Hi,

 

I am trying to select the first letter of the following sentence:

 

Queen Mary University of London

 

I want the formula to return QMUoL. Does anyone know of a way of doing this?

 

Thanks!

2 REPLIES 2
Kenda
16 - Nebula
16 - Nebula

Hey @fahmed18 

 

Attached is how I would tackle this problem. First I would add a RecordID then split each record so that each word is on its own row. Then, use the Formula tool to get the first letter from each of those rows. Finally, use the Summarize tool to concatenate that newly created field.

 

Capture.PNG

Thableaus
17 - Castor
17 - Castor

Hi @fahmed18 

 

Would this work?

 

Formula Tool:

REGEX_Replace([Field1], "(?<=\w)(\w+\W?)", "")

 

Cheers,

 

Labels
Top Solution Authors