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