Join the Alteryx Community’s Maveryx Summer Cup event! Compete, network with others, and earn your gold through a series of challenges from July 24th to August 11th. Learn more about the event here.

Alteryx Designer Desktop Discussions

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

IF AND IF THEN ELSE END IF - UGH it's not working!

MaryCann
8 - Asteroid

The formula cannot be this difficult!  And I don't want my boss to know I can't figure it out.  So, you folks!  What is wrong with the below formula?

MaryCann_0-1669133578529.png

Supposedly it's a Malformed If Statement...

6 REPLIES 6
ShankerV
17 - Castor

Hi @MaryCann 

 

You have used 2 IF, you need to use only 1 IF.

 

Many thanks

Shaker V

Luke_C
17 - Castor

Hi @MaryCann change your AND IF to just AND

IraWatt
17 - Castor
17 - Castor

Hey @MaryCann,

You don't need the second IF statement should just start:

IF [Prescription End Date] >= DateTimeTodya() and [Client.....
MaryCann
8 - Asteroid

OMG!  Thank you @ShankerV !

ShankerV
17 - Castor

Hi @MaryCann 

 

IF (condition 1 AND condition 2)
then
else
endif

 

Many thanks

Shanker V

ShankerV
17 - Castor

@MaryCann 

 

Welcome, happy to help!!!

 

Many thanks

Shanker V

Labels