I need to create a running total that will be displayed on the group and report footers.
The data comprises of disbursement records. Each disbursement record includes the gross amount (using currency format). A set of disbursements is grouped by its transaction id. Thus, I defined the transaction id as a group. I would like to sum the gross amount only once as it is displayed on the group footer. And also sum that gross amount within the report footer.
I defined 3 formula fields. These are:
** ResetGAmount: if not InRepeatedGroupHeader
then Global currencyVar nGAmountRT := 0;
** RTGAmount: if not InRepeatedGroupHeader
then Global numberVar nGAmountRT := nGAmountRT + iif({disb count}=1,gross amount,0)};
** DisplayGAmount: WhilePrintingRecords;
Global currencyVar nGAmountRT ;
What am I missing in the above fields so that I can display the info properly on the report?