Advent of Code is back! Unwrap daily challenges to sharpen your Alteryx skills and earn badges along the way! Learn more now.

Alteryx Designer Desktop Discussions

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

How to make a conditional formula ?

pthathes
6 - Meteoroid

Hi Team,

 

I need to update the status like completed , inprogress & Cancelled, base on the below.

 

Condition 1    ->   A and B are "null" , then status should be "inprogress"

Condition 2    ->   A is null B contains date, then status should be "cancelled"

Condition 3    ->   A contains numeric value and B contains the Date, then status should be "Completed"

 

ABStatus should be
873201/10/2024 04:12:14 AMcompleted
nullnullInprogress
881001/24/2024 11:33:29 AMcompleted
null01/24/2024 12:52:25 PMCancelled
5221001/25/2024 11:24:46 AMcompleted
5222301/30/2024 07:26:55 AMcompleted
nullnullInprogress
887202/01/2024 09:29:17 AMcompleted
null02/12/2024 05:51:38 AMCancelled
5225302/12/2024 05:52:25 AMcompleted
null02/12/2024 05:53:32 AMCancelled
nullnullInprogress
5225002/12/2024 05:55:14 AMcompleted

 

Thanks

Thathes

2 REPLIES 2
ShankerV
17 - Castor

Hi @pthathes 

 

The below will work for your use case.

 

IF isnull([ARTICLE NUMBER]) and isnull([COMPLETED])

THEN 'Inprogress'

ELSEIF isnull([ARTICLE NUMBER])

THEN 'Cancelled'

ELSE 'Completed'

ENDIF

 

Screenshot 2024-10-15 155105.png

Many thanks

Shanker V

pthathes
6 - Meteoroid

Thank you so much Shankar V...

Its working fine...

 

Regards

P. Thathes

Labels