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.

If Statement for multiple criteria on amount

SH_94
11 - Bolide

Hi Community,

 

I would like to change the positive or negative sign for amount as per screenshot below:

Jcsh_66_0-1617324992079.png

 

1. If the customer A with the type is Y, change the amount from positive to negative amount. If the customer A with type W, remain the original amount

2. If customer is B remain as per the original amount.

3. If the customer is C, change the amount from positive to negative amount.

 

May i know how you all will build this workflow ? I had attached the file below for your reference.

2 REPLIES 2
apathetichell
20 - Arcturus

How about

 

if [customer name]="C" or ([customer name]="A" and [type]="Y") then -[invoice amount] else [invoice amount] endif

 

will get you the result you want.

Qiu
21 - Polaris
21 - Polaris

@SH_94 

In my case, I would prepare a look up table since I believe you have a lot of cretia in your business flow.

The if then formula will then get really messy and a look up table will be easier to maintain.

Capture3A.PNG

Labels
Top Solution Authors