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

Alteryx Designer Desktop Discussions

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

Parse Error: Malformed If Statement - Need Assistance

Cassie_Shaw
7 - Meteor

Hi! i need help with this if formula  - I am trying to say if (x) = none and if any of these columns (transactions 1-6) have "BCS - no further benefits letter" then return "no benefits due" if not, return (x).  I am not sure what I am doing wrong:

Cassie_Shaw_0-1660308648323.png

Cassie_Shaw_1-1660308666499.png

 

 

4 REPLIES 4
ChrisTX
16 - Nebula
16 - Nebula

After your first AND, remove the characters "IF"

 

Chris

MarqueeCrew
20 - Arcturus
20 - Arcturus

@Cassie_Shaw ,

 

How about:

 

IF
[X] = "NONE" AND
!CONTAINS([Tran 1]+[Tran 2]+[Tran 3]+[Tran 4]+[Tran 5]+[Tran 6],"BCS - no further benefits letter") THEN "No Benefits Due"
ELSE [Y]
ENDIF

I think that this is readable.

 

Cheers,


Mark

Alteryx ACE & Top Community Contributor

Chaos reigns within. Repent, reflect and restart. Order shall return.
Please Subscribe to my youTube channel.
Cassie_Shaw
7 - Meteor

@MarqueeCrew & @ChrisTX - Thank you both!

MarqueeCrew
20 - Arcturus
20 - Arcturus

@Cassie_Shaw ,

 

 you're welcome ☺️ 

Alteryx ACE & Top Community Contributor

Chaos reigns within. Repent, reflect and restart. Order shall return.
Please Subscribe to my youTube channel.
Labels
Top Solution Authors