Alteryx Designer Desktop Discussions

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

Parsing out only certain letters

Deano478
12 - Quasar

Hi All,

 

I hope everyone is having a nice Friday.

 

I'm currently having a bit of a problem that maybe someone could maybe help me solve. I have data like so that's very messy:

 

Description
TS: Entry1
TS :Entry2
TS:Entry3

TS Project Work

 

what I need to do is extract just the letters TS from the data into a new column i've tried  a few approaches but sadly no dice yet.

 

any help would be much appreciated.

7 REPLIES 7
caltang
17 - Castor
17 - Castor

Try this:image.png

 

((?i)^TS)
Calvin Tang
Alteryx ACE
https://www.linkedin.com/in/calvintangkw/
Amy_smart
11 - Bolide

Hi,

 

I would recommend the following:

1) Use a Text to Parse on : as the delimitator. Your 'TS' will be in the first column.

 

Thanks,

Amy

caltang
17 - Castor
17 - Castor

If they're all on the LEFT, you can also use:

LEFT([Data],2)

 

Try both and see which one is better.

 

If it helps, kindly like & mark it as an accepted solution to help others & to close this thread accordingly.

 

Thanks.

Calvin Tang
Alteryx ACE
https://www.linkedin.com/in/calvintangkw/
ShankerV
17 - Castor

Hi @Deano478 

 

Please use the Regex tool.

 

Regular expression:

(TS)

 

Output method: 

Parse

 

Many thanks

Shanker V

jdminton
12 - Quasar

Or simply use a formula tool with Replace(Left([Description],2),"TS","")

 

Edit: that would also remove words with TS together after. This would work though

IF Left([Description],2)="TS"
THEN Substring([Description],2,Length([Description]))
ELSE [Description]
ENDIF

caltang
17 - Castor
17 - Castor

So many ways of solving - that's the beauty of Alteryx! Thanks for sharing @ShankerV @jdminton @Amy_smart !

Calvin Tang
Alteryx ACE
https://www.linkedin.com/in/calvintangkw/
Deano478
12 - Quasar

Wow @caltang @jdminton @ShankerV @Amy_smart  I appreciate you all taking the time to look at this issue I was having I tried each solution offered and they all worked so I;m going to mark you all solved

Polls
We’re dying to get your help in determining what the new profile picture frame should be this Halloween. Cast your vote and help us haunt the Community with the best spooky character.
Don’t ghost us—pick your favorite now!
Labels