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.
SOLVED

IF contains forumla for positive and negative values

geeklarokcmie
8 - Asteroid
Column AAtypeAmnt
123GPP40.56
456CBB40.51
789GPP30.0
101CBB80.00
102AAP9.00
103AKS7.00

 

What can be the forumla or tool to use  for the below requirement:

 

The net ‘Amnt’  where the net equals any Atype containing GPP and CBB minus all others

 

I have used the below formula but I only get negative values - I need to get both positive and negative values

 

IF [Atype] in ('GPP','CBB') then [Amnt]
ELSE -1*[Amnt] ENDIF

1 REPLY 1
Luke_C
17 - Castor
17 - Castor

Hi @geeklarokcmie 

 

It seems to be working correctly? Can you share the expected output for each column?

Luke_C_0-1663689320352.png

 

 

Labels
Top Solution Authors