Quantcast
Channel: Data Preparation & Blending discussions
Viewing all articles
Browse latest Browse all 4999

Multiple IF expression - Invalid type in operator == error

$
0
0

I'm new to Alteryx and am trying to perform what should be a relatively simple task.

 

I have two existing columns, the rows in these columns contain either a 0 or a 1. The 0 denotes a no whilst the 1 denotes a yes.

 

I need a working formula that creates a new column based off of the following:

 

If the value in column A is 0 then mark as 0, if the value is 1 look at Column B, if Column B is a 0 then mark as 1, if Column B is a 1 mark as 0.

 

The formula I am trying to use is:

 

IF [Renewal_Invited_Count] =0 THEN "0" ELSEIF [Renewal_Lapsed_Count] =0 THEN "1" ELSE "0" ENDIF

 

Unfortunately this formula is bringing up the error listed in the title, the exact error message when run is: Error: Formula (105): Parse Error at char(0): Invalid type in operator ==. (Expression #5)

 

I'm sure that I have a simple syntax error, but for life of me cannot get it to work no matter which way I write it.


Viewing all articles
Browse latest Browse all 4999

Trending Articles