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

Malformed formula with multiple if statements and criteria

pattersonmichaelk
6 - Meteoroid

Relatively new to Alteryx and struggling to get some formulas to work. Below is an example. Can someone potentially point me to where the malformed error is? The one new column I want to return true/false for has about 7 of these if statements.

 

IF [C.4.a. Asset Type] = "ABS-CBDO" AND [Industry_Group] = "Other Asset Backed Securities" THEN "True" ELSE "False" OR

IF [C.4.a. Asset Type] = "ABS-MBS" AND [Industry_Sector] = "Mortgage Securities" THEN "True" ELSE "False" OR

ENDIF

3 REPLIES 3
Garabujo7
Alteryx
Alteryx

Hello @pattersonmichaelk ,

 

I did some small changes and now is working:

 

Garabujo7_0-1632425048277.png

IF [C.4.a. Asset Type] = "ABS-CBDO" AND [Industry_Group] = "Other Asset Backed Securities" THEN "True" elseif
[C.4.a. Asset Type] = "ABS-MBS" AND [Industry_Sector] = "Mortgage Securities" THEN "True" ELSE "False"
ENDIF

 

Hope this helps

Gabriel

pattersonmichaelk
6 - Meteoroid

Thank you!

Garabujo7
Alteryx
Alteryx

Anytime!

Labels
Top Solution Authors