Bring your best ideas to the AI Use Case Contest! Enter to win 40 hours of expert engineering support and bring your vision to life using the powerful combination of Alteryx + AI. Learn more now, or go straight to the submission form.
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