Bring your best ideas to the AI Use Case Contest! Enter to win 40 hours of expert engineering support and bring your vision to life using the powerful combination of Alteryx + AI. Learn more now, or go straight to the submission form.
Start Free Trial

Alteryx Designer Desktop Discussions

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

Parse Error (tried to apply numeric operator to string value)

Claudia
5 - Atom

Hi Alteryx experts,

 

I am experiencing errors with the formula below. Would greatly appreciate any help. 

 

Thank you!

 

4 REPLIES 4
DataNath
17 - Castor
17 - Castor

Hey @Claudia, you'll need to check the datatypes here. As the error message mentions, one of your fields - [ENDING BALANCE] or [GENERAL LEDGER BALANCE] - or both, are actually strings rather than numeric and you therefore can't subtract them/treat them as numbers without fixing this. You can either put a Select tool beforehand and make them a numeric type like a double, integer etc. (or, because you're creating the ENDING BALANCE field in a Formula beforehand, just make it numeric there as the default is string) or, within the expression itself, wrap them in ToNumber() so it'd be:

 

 

ToNumber([ENDING BALANCE])-ToNumber([GENERAL LEDGER BALANCE])

 

Damian_WRO
7 - Meteor

Hi, Make sure that your ENDING BALANCE field you created in a 'Formula' tool is a Numeric type, not String. Make also sure that GENERAL LEDGER BALANCE is numeric, you can check that under 'Select' tool you used in your workflow. Please also correct data type in DIFFERENCE formula tool to any Numeric type.

Claudia
5 - Atom

DataNath  Damian_WRO thank you for your great help!

caltang
17 - Castor
17 - Castor

Hi @Claudia ! If it helped, can you kindly mark @Damian_WRO and @DataNath 's comments as accepted solutions? This helps close the thread and helps others find the solution as well. Thanks!

Calvin Tang
Alteryx ACE
https://www.linkedin.com/in/calvintangkw/
Labels
Top Solution Authors