Bring your best ideas to the AI Use Case Contest! Enter to win 40 hours of expert engineering support and bring your vision to life using the powerful combination of Alteryx + AI. Learn more now, or go straight to the submission form.
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