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!
We’re experiencing technical issues with our vendor that are affecting license activations for Designer Desktop. We don’t yet have an estimated resolution time. We apologize for the inconvenience and will share updates as we have them.
Start Free Trial

Alteryx Designer Desktop Discussions

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

Truncating number from a string

sahasanb
7 - Meteor

I ma new in Alteryx. Please help me to find solution for attached scenario.

3 REPLIES 3
DataNath
17 - Castor
17 - Castor

Hey @sahasanb, here's one way I'd go about this, using a regular expression to find a percentage in the string and parse that:

 

DataNath_0-1667337745402.png

acarter881
12 - Quasar

Hello @sahasanb.

 

Please see attached for one possible solution.

acarter881_0-1667338186955.png

 

binuacs
21 - Polaris

@sahasanb One way of doing this

REGEX_Replace([Name], '.*?(\d+%)', '$1')

binuacs_0-1667340287956.png

 

Labels
Top Solution Authors