Hi everyone,
I'm trying to put together an if statement from my excel file and put it in Alteryx. The excel formula looks like this:
=IF(AND(Actual/Plan="Actual",OR(Year<Current Year,AND(Year=Current Year,Month<=Current Month))),"Include",IF(AND(Actual/Plan="Plan",OR(Year>Current Year,AND(Year>Current Year,Month>Current Month))),"Include","Exclude"))
This is what I currently have and receive a Malformed Function Call error
IF CONTAINS([Actual/Plan]="ACTUAL",[YEAR]<[Current Year],[MONTH]<=[Current Month])THEN "INCLUDE"
AND
IF CONTAINS([Actual/Plan]="Plan",([YEAR]>[Current Year]),([YEAR]>=[Current Year]),([MONTH]>[Current Month]),"Include","Exclude"
ELSEIF Null()
ENDIF
All fields are currently V_String
Any help is appreciated!