Get Inspire insights from former attendees in our AMA discussion thread on Inspire Buzz. ACEs and other community members are on call all week to answer!

Alteryx Designer Desktop Discussions

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

Parse Error at char(0): Parse Error (Expression #1)

Notemba
5 - Atom

Hi I am attempting to subtract one column from another column however I keep getting the following error:

 

Error: Formula (13): Parse Error at char(0): Parse Error (Expression #1)

 

See below for formula:

 

=[Expected Ending Balance]-[Amounts 2019]

4 REPLIES 4
OllieClarke
15 - Aurora
15 - Aurora

Hi @Notemba you don't need to start formulae with an '=' in Alteryx. Try:

[Expected Ending Balance] - [Amounts 2019]

 

Ollie

Notemba
5 - Atom

Hi,

 

Thank you for getting  back to me so quickly.

 

I am still getting the below error message:

 

Error: Formula (13): Parse Error at char(0): Formula: invalid type in subtraction operator (Expression #1)

clmc9601
13 - Pulsar
13 - Pulsar

Hi @Notemba,

 

That error means one of your referenced fields is stored as a string. Based on "char(0)", I'd guess it's the first one. You'll need to change the field to a numeric data type (like with a select tool) or temporarily change it to a number in your expression with ToNumber([field]). 

BretCarr
10 - Fireball

@clmc9601 is likely spot on. To do mathematics with your fields, you need to make sure they are the correct format. In your case, you need to pick a number format. You can use the Select Tool or just do it in your formula as clmc suggested!

 

Happy solving!

Labels