Advent of Code is back! Unwrap daily challenges to sharpen your Alteryx skills and earn badges along the way! Learn more now.

Alteryx Designer Desktop Discussions

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

SIGN Function

calvincarr29
8 - Asteroid

Is the SIGN function available to use in Alteryx?

 

I've tried searching for it but no luck.

5 REPLIES 5
alexnajm
17 - Castor
17 - Castor

Is this not it? SIGN Function (alteryx.com)

alexnajm
17 - Castor
17 - Castor

 Ah shoot, this was for Trifacta. Here's the workaround: Solved: Detection of Positive and Negative Amount - Alteryx Community

calvincarr29
8 - Asteroid

It's not popping up in the formula tool.

CoG
13 - Pulsar

Cool Formula to mirror the Sign function:

 

([Number]<0) - ([Number]>0)

 

^suggested by ChatGPT

patrick_digan
17 - Castor
17 - Castor

@calvincarr29 For what it's worth, @jdunkerley79 built a sign function into the alteryx abacus which is something you can add in to designer.

image.png

I've installed the abacus in my designer, so I can use the sign function: 

 

image.png

Looking under the hood of the abacus functions, James is using this formula:

IIF(ISNULL(Field1),NULL(),IIF(Field1=0,0,IIF(Field1<0,-1,1)))
Labels