Let’s talk Alteryx Copilot. Join the live AMA event to connect with the Alteryx team, ask questions, and hear how others are exploring what Copilot can do. Have Copilot questions? Ask here!
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