I have two running total fields, {#F1} and {#F2}, in my report that each calculate the sum of a database field, evaluating on change of group. While testing the report, I discovered that running the report off the same datasource (a table with a cached snapshot of data that is not updated) twice in succession would yield identical results for all my fields except the two running total fields.
I was able to trace this behavior to my grouping options. I erroneously assumed that sorting my group in its original order would save a bit of time, but as a result, my running totals would evaluate multiple times for a particular group if the detail records for that group were not together. I changed the group options so that groups were kept together and sorted in ascending (could have just as easily been descending) order.
As expected, this solved the problem for one of the running total fields, {#F1}. I can now run the report several times in succession, and the result for {#F1) remains consistent. However, the value for {#F2} is returned as any of four values, ranging from 3709 to 3773.
By all appearances, {#F1} and {#F2} should be computed identically, save for the field value which is being summed. Each is a sum, evaluated on change of group, never reset, placed in the report footer. Can anyone lend any insight into this behavior? Obviously I can't publish reports that may contain incorrect data.
Thanks in advance,
Lew
I was able to trace this behavior to my grouping options. I erroneously assumed that sorting my group in its original order would save a bit of time, but as a result, my running totals would evaluate multiple times for a particular group if the detail records for that group were not together. I changed the group options so that groups were kept together and sorted in ascending (could have just as easily been descending) order.
As expected, this solved the problem for one of the running total fields, {#F1}. I can now run the report several times in succession, and the result for {#F1) remains consistent. However, the value for {#F2} is returned as any of four values, ranging from 3709 to 3773.
By all appearances, {#F1} and {#F2} should be computed identically, save for the field value which is being summed. Each is a sum, evaluated on change of group, never reset, placed in the report footer. Can anyone lend any insight into this behavior? Obviously I can't publish reports that may contain incorrect data.
Thanks in advance,
Lew