Calculation syntax errors
Posted: Sun May 16, 2010 2:14 am
Hello
I am trying to get some totals and calculations in the designer, but I am having few issues...
The scenario that I'm working on is:
Sum the values
calculate a percentage on the value
So I get the Total of the values which like this and it works
{Sum(DataJobs,JobsParts.TotalBuyExTax)}
Now I want to calculate a percentage of this using a field in the database
{Sum(DataJobs,JobsParts.TotalBuyExTax) * (DatabandName, Mydatasource.mypercentcolumn)}
But it ways gives me errors to say that using the * operand is not allowed for decimal and strings
If I use this syntax
{Sum(DataJobs,JobsParts.TotalBuyExTax) * 1}
It works but it's not the result I want..
If I use this syntax
{Sum(DataJobs,JobsParts.TotalBuyExTax) * 1.5}
I get the error about the operand * again.
Both these fields in the database are data type currency
Any help would be appreciated
I am trying to get some totals and calculations in the designer, but I am having few issues...
The scenario that I'm working on is:
Sum the values
calculate a percentage on the value
So I get the Total of the values which like this and it works
{Sum(DataJobs,JobsParts.TotalBuyExTax)}
Now I want to calculate a percentage of this using a field in the database
{Sum(DataJobs,JobsParts.TotalBuyExTax) * (DatabandName, Mydatasource.mypercentcolumn)}
But it ways gives me errors to say that using the * operand is not allowed for decimal and strings
If I use this syntax
{Sum(DataJobs,JobsParts.TotalBuyExTax) * 1}
It works but it's not the result I want..
If I use this syntax
{Sum(DataJobs,JobsParts.TotalBuyExTax) * 1.5}
I get the error about the operand * again.
Both these fields in the database are data type currency
Any help would be appreciated