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
19 - Altair
19 - Altair

@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