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

Removing parenthesis

davidkelly6024
5 - Atom
 

In my data there are parenthesis around negative numbers see attached snip. I would like to remove the parenthesis to change the data type to double. How would I be able to parse out the parenthesis? 

2 REPLIES 2
MilindG
12 - Quasar
markcurry
12 - Quasar

Hi @davidkelly6024 ,

 

As the values contain the ()'s they'll in string format.   Use this formula, then change the data type afterwards to a Float or Double...

 

IF Contains([F4],"(") THEN
"-" + ReplaceChar([F4], "(),", "")
ELSE
ReplaceChar([F4], ",", "")
ENDIF

 

See the attached workflow.

Labels
Top Solution Authors