In case you missed the announcement: The Alteryx One Fall Release is here! Learn more about the new features and capabilities here
ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests Early 2026. Make sure to check your account preferences in my.alteryx.com to make sure you have filled out your security questions. Learn more here
Start Free Trial

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.
SOLVED

Nested AND statements

b86
6 - Meteoroid

Hi all,

 

I'm trying to work out a formula with multiple AND statements, but I can seem to get the syntax right. Right now I have 

 

if ([Total_Score]>= 0 AND [Total_Score]<= 7) AND

([Nbr_Sim]>=0.5 AND [Address_Score]<4) AND

([StreetTag_Sim]>= 0.5 OR [Place_Sim] >= 0.5) THEN "CHECK" ELSE " " Endif

 

This doesnt seem to work as I am finding values outside of my parameters popping up. Any help would be greatly appreciated!

2 REPLIES 2
JagdeeshN
12 - Quasar
12 - Quasar

@b86 

 

Please refer to the attached workflow sample. I created a sample input and the formula seems to work.

 

Have you checked the data types of all the columns you are using in the formula?

 

Best,

Jagdeesh 

danilang
19 - Altair
19 - Altair

Hi @b86 

 

As @JagdeeshN mentioned, the syntax of the IF statement is correct.  However, that doesn't mean that it performs the operation that you're looking for. 

 

Can you post some sample data and your expected output, highlighting that values that are not matched by the statement

 

Dan 

Labels
Top Solution Authors