Free Trial

Alteryx Designer Desktop Discussions

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

Parse Error at char(0)

Shivi2110
6 - Meteoroid

I am trying to apply an IF formula where the Quantity is in numbers and Value field is in decimal, so i have changed Quantity to Int64 and Value to Double.

However, while applying formula, it is giving me an error as Parse Error at char(0).

 

Formula says: If ([Quantity] = "" AND ![Quantity] = "0"

AND ([Value] = "" AND ![Value] = "0")

THEN "Position where both are populated and are not 0"

ELSE "NA" ENDIF

 

 

 

 

 

 

1 REPLY 1
danilang
19 - Altair
19 - Altair

@Shivi2110 

 

You can't use a construct like [Quantity]= "0" if your field are both numeric. You need to use [Quantity] =0.   You also check for empty numeric fields with isnull()  So your formula becomes this

 

If (!isnull([Quantity])  AND [Quantity] != 0)

AND (!isnull([Value])  AND [Value] != 0)

THEN "Position where both are populated and are not 0"

ELSE "NA" ENDIF

 

Dan

Labels
Top Solution Authors