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

Multi-Row Formula tool - ABS

Kinetic_analytics
11 - Bolide

Hello:

Good morning folks. I am using Multi-Row Formula tool .

 

IF( [ hedged]>"500000")THEN "Hedge" ELSE "" ENDIF

 

How can I address the absolute value (+-500,000) in the formula. 

 

Appreciate your help.

Thanks

2 REPLIES 2
DataNath
17 - Castor
17 - Castor

@Kinetic_analytics given that you have 500000 in quotes, I'm guessing this [ hedged] field is a string? If so, you'll want to use the following expression:

 

IF( abs(tonumber([ hedged]))>500000)THEN "Hedge" ELSE "" ENDIF

DataNath_0-1667919257834.png

 

If [ hedged] is actually numeric then just use:

 

IF( abs([ hedged])>500000)THEN "Hedge" ELSE "" ENDIF

DataNath_1-1667919339509.png

 

On another note: It doesn't look like you're referencing previous or following rows - unless this is part of a larger expression, you should just be able to use a regular Formula rather than Multi-Row.

Kinetic_analytics
11 - Bolide

Thank you. Appreciate your help all the time my friend. :) Have a great day. I learned a lot from you. 

Labels
Top Solution Authors