In case you missed the announcement: The Alteryx One Fall Release is here! Learn more about the new features and capabilities here
ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests after December 31, 2025. Set up your security questions now so you can recover your account anytime, just log out and back in to get started. Learn more here
Start 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