In case you missed the announcement: The Alteryx One Fall Release is here! Learn more about the new features and capabilities here
ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests after December 31, 2025. Set up your security questions now so you can recover your account anytime, just log out and back in to get started. 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 a column contains one value, then convert the amount in a different column to a negatie

dberroth
8 - Asteroid

So I have two columns, one column has values 1-5 named "Type". The second column is named "Dolllars" and has dollar amounts. I need to have a statement that IF column "Type" has a value of 2, then the dollar amount in the same row in "Dollars" column should convert to negative. 

 

I hope I explained what I'm trying to do good enough. Is this a formula function I assume? I'm not having luck getting this resolved.

Any direction is appreciated.

1 REPLY 1
jrgo
14 - Magnetar

@dberroth 

 

Try

IF [Type] = '2'
THEN [Dollar] * -1
ELSE [Dollar]
ENDIF
Labels
Top Solution Authors