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

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
Top Solution Authors