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 statements

Alisuzy
5 - Atom

Hi everyone.

 

I am new to Alterex and must say that I am really enjoying it.

 

I am having trouble formulating an IF statement. If anyone could help me out I would be very appreciative.

 

My cols are : Ending Balance (numeric col), P/L balance(numeric col), section (Asset, Liability,Income,Expense).

 

I am trying to create a formula for:

If Section = Asset or Liability then use the figures from the Ending balance.

If section = income or expense, then use the P/L balance figures.

Ideally, I need a new col with the correct figures populated.

 

 

 

2 REPLIES 2
rafalolbert
ACE Emeritus
ACE Emeritus

Hi @Alisuzy,

 

Formula you're after here is: 

 

IF ([section ] = "Asset" OR [section ] = "Liability") THEN [Ending Balance]
ELSEIF ([section ] = "Income" OR [section ] = "Expense") THEN [P/L balance] ELSE "" ENDIF

 

Thanks,

Rafal

 

#Excume me, do you speak Alteryx?

Alisuzy
5 - Atom

Thank you so much!!!!

Labels
Top Solution Authors