Important Community update: The process for changing your account details was updated on June 25th. Learn how this impacts your Community experience and the actions we suggest you take to secure your account here.

Alteryx Designer Desktop Discussions

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

Nested if else when first if is true

aashishbhardwaj
5 - Atom

I am new to Alteryx and trying to use nested if-else statement. I tried searching but didn't get a case similar to mine. let us say passing marks for in two main subjects are 30 each and to pass overall student should be present in the class 90% of the time. What I need is

 
if (Marks1 > 30 and Marks2> 30 Then ( If (Attendance > 90), then "PASS" else "FAIL due to less attendance"), else "FAIL due to fewer marks") so I want that if first statements are true then I can have another if statement.
2 REPLIES 2
df
8 - Asteroid

Hi @aashishbhardwaj,

 

just like you said yourself 🙂

df_0-1600759109088.png


You can also work with filters and union:

df_1-1600759140158.png

Does this help?

 

Cheers
David

 

grazitti_sapna
17 - Castor

Hi @aashishbhardwaj , I mocked up a workflow I hope it helps.

grazitti_sapna_0-1600761442064.png

 

Thanks.

Sapna Gupta
Labels