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.

Formula tool

Elena_B1
7 - Meteor

Hello. I'm trying to  to categorize transactions based on their Document Type, Offsetting account number, Text, and currency amounts. Could you please help to correct the formula below.

 

IF [Document Type]="AC" OR [Document Type]="AR" THEN "Accrual/Accrual Reversal"

ELSEIF [Offsetting acct no.]=[Offsetting acct no.] AND [Text] = [Text] And [Amount in local currency] oposit [Amount in doc. curr.] THEN "Reclass"

ELSE "Other"

ENDIF

3 REPLIES 3
alexnajm
18 - Pollux
18 - Pollux

@Elena_B1 what is "oposit"? Is it an inverse function? Also it looks like these are unnecessary as they are just saying each column equals itself: [Offsetting acct no.]=[Offsetting acct no.] AND [Text] = [Text]

 

Based on my assumptions:

IF [Document Type]="AC" OR [Document Type]="AR" THEN "Accrual/Accrual Reversal"

ELSEIF [Amount in local currency] = -1*[Amount in doc. curr.] THEN "Reclass"

ELSE "Other"

ENDIF

Elena_B1
7 - Meteor

Unfortunately, it is not working for me. the highlighted should be categorized as "reclass". Could you please help?

Elena_B1_0-1682445890016.png

 

Dina
9 - Comet

I think you are referring a wrong column. [amount] will never equal to -1*[amount] , since it is same column. Based on your note, seems like it should be [Amount in local currency] = -1*[Amount in doc. curr.] . Or you can put [amount]<0 to check if amount is a negative number. 

Labels
Top Solution Authors