Quantcast
Channel: Adobe Community : Popular Discussions - Reporting
Viewing all articles
Browse latest Browse all 38309

Problem with Math In Calculated Fields

$
0
0
I am calculating a group incident rate for data returned from a query. The formula is Number of cases multiplied by 200000 divided by number of hours worked. Cases in my report is the calculated field: calc.CaseSum (the sum of cases for the group) Hours is calc.SumHours (the sum of hours for the group). The actual values for these variables (for the first group are 48 and 29427171 respectively. When I create the following calculated field called rate using the formula: (calc.CaseSum * 200000) / calc.SumHours, Cold Fusion Generates a Runtime Error:

Invalid ColdFusion expression in report. If the expression is a string, ensure that it is within quotes. Error: (calc.CaseSum * 200000) / calc.SumHours is not a valid ColdFusion expression.

If I use the constant value "29427171" as the divisor, the report works albeit only for the first group. Any ideas; is this a bug, or am I misusing the product?

Addition: I forgot to mention I am using CF8. Also this formula worked fine as a Report Total before I introduced grouping and modified the calculated fields to reset on the change of a group.

Viewing all articles
Browse latest Browse all 38309

Trending Articles