In case you missed the announcement: The Alteryx One Fall Release is here! Learn more about the new features and capabilities here
ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests Early 2026. Make sure to check your account preferences in my.alteryx.com to make sure you have filled out your security questions. Learn more here
Start Free Trial

Alteryx Designer Desktop Discussions

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

Conversion errors using regex

nm518
7 - Meteor

Hi 

 

I'm trying to convert numbers in a format such as (0.64%) into double s.t. output is -0.0064. Have tried using regex in the formula tool as attached and the outcome is as expected but kicks off a ton of conversion errors


Any ideas how i can clean this up to avoid conversion errors?

 

Thanks in advance

Nish

2 REPLIES 2
cmcclellan
14 - Magnetar

This will work :

 

tonumber(
REGEX_Replace(
REGEX_Replace(
	REGEX_Replace([Value], "\%", "")
, 	"\(", "-")
, 	"\)", "")
)
/100

You weren't removing the closing bracket :)

nm518
7 - Meteor

perfect - thanks!

Labels
Top Solution Authors