Important Community update: The process for changing your account details was updated on June 25th. Learn how this impacts your Community experience and the actions we suggest you take to secure your account here.

Alteryx Designer Desktop Discussions

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

Parsing number within words

swhitmeyer
8 - Asteroid

Hi,

 

I am looking to separate out any % within a field, see below.

 

D - JOINT AND 50% SURVIVOR         I would just want the 50

K - JOINT AND 75% SURVIVOR          I would just want the 75

6 - JOINT SURVIVOR POPUP 55%     I would just want the 55

 

Thank you,

Sonya

 

3 REPLIES 3
JosephSerpis
17 - Castor
17 - Castor

Hi @swhitmeyer you want to use the regex tool with this syntax (\d{2})

 

Regex_290819.PNG

Thableaus
17 - Castor
17 - Castor

Hi @swhitmeyer 

 

You could use REGEX in the Formula Tool.

 

REGEX_Replace([Field1], ".*?\b(\d.*)%.*", "$1")

 

Cheers,

swhitmeyer
8 - Asteroid

It was that simple, thank you!!

Labels