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

Nested if statements

SylviaK
8 - Asteroid

Hi

 

Not sure why this if statement is not working. Can someone pls help?

 

IF
IsNull([Status Update Datetime (Latest)])
THEN "LAST STATUS UPDATE IS NULL"
ELSE IF ([Overall Rating]>3 and [Days since last status update] >40)
THEN "last update date greater than 40 days"
ELSE IF ([Overall Rating]=3 and [Days since last status update] >100)
THEN "3-rated - last update date greater than 100 days"
ELSE "last update within required timeframe"
ENDIF ENDIF Endif

 

many thanks, 

Sylvia

5 REPLIES 5
Emil_Kos
17 - Castor
17 - Castor

Hi @SylviaK,


What error do you receive?

Emil_Kos
17 - Castor
17 - Castor

Hi @SylviaK,

 

I have replicated this and it looks like it isn't a matter of error.

 

It will be hard to help you if you will not share more information about why it isn't working for you. 

 

Emil_Kos_0-1615817435453.png

 

 

SylviaK
8 - Asteroid

SylviaK_0-1615817918756.png

 

 

I get the above error and my beginning IF is underlined red

Emil_Kos
17 - Castor
17 - Castor

Hi @SylviaK,

 

Check if the data type is correct:

 

Emil_Kos_0-1615818036879.png

It looks like some of the data type isn't correct. 

SylviaK
8 - Asteroid

brilliant. that worked. many thanks

Labels
Top Solution Authors