We are celebrating the 10-year anniversary of the Alteryx Community! Learn more and join in on the fun here.
Start Free Trial

Alteryx Designer Desktop Discussions

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

How to change the negative value to positive value

vsalver
8 - Asteroid

Can someone please help me with the formula to change the negative value to positive and in the same column I have the positive value as well and it shouldn't be changed.

 

 

Amt

   5

-15

  25

-35

5 REPLIES 5
Claje
14 - Magnetar

Hi,

 

The ABS() function in the Formula tool will do this by getting the absolute value for each of these.

 

 

ABS([Amt])

Should do it.

vsalver
8 - Asteroid

@Claje thank you so much, it worked

joshikalyani
8 - Asteroid

But in my case it is showing error

joshikalyani_0-1663863019807.png

 

RBrines
5 - Atom

You would want to make sure your incoming data type is numeric. The error there looks like you have a string type instead. 

aatalai
15 - Aurora

@RBrines you could also do it with this formula (to avoid needing a select tool

 

abs(tonumber([Field]))
Labels
Top Solution Authors