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.

String to Double

Rayyyyy
6 - Meteoroid
 

Hello, can somebody help me using the select tool. I tried to convert the string into double, but it seems that the output is changing the amount into a whole number. Is there any other way how I can convert the transaction amount into a normal number? Thanks in advance!

Capture.PNGCapture2.PNG

3 REPLIES 3
FinnCharlton
13 - Pulsar

Hey @Rayyyyy , you can get around this by removing the comma in your number. I recommend doing it in a Multi-Field Formula tool, as you can change the data type of the field in the same tool. Copy this configuration:

 

image.png

Rayyyyy
6 - Meteoroid

Hi @Fincharlton,

thanks for your reply, however have I also tried to do that procedure but the "-" represents as a negative amount. So in that case the amount must be -589,339.70. Thanks

FinnCharlton
13 - Pulsar

You could use this code instead:

 

if
right([_CurrentField_],1)='-'
then
'-' + replace([_CurrentField_],',','')
else
replace([_CurrentField_],',','')
endif
Labels
Top Solution Authors