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.
解決済み

How to change the negative value to positive value

vsalver
アステロイド

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件の返信5
Claje
マグネター

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
アステロイド

@Claje thank you so much, it worked

joshikalyani
アステロイド

But in my case it is showing error

joshikalyani_0-1663863019807.png

 

RBrines
アトム

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

aatalai
オーロラ

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

 

abs(tonumber([Field]))
ラベル
トップのソリューション投稿者