I have a report that is grouped by Emp and Weeks
I have created a formula that calculated an average.
@vpg
sum ({@SalesVol}, {PAYABLES_LEDGER.PAY_WK})/Count ({@in period counter}, {PAYABLES_LEDGER.PAY_WK})
This works fine and calculates correctly for all emp
The problem is in my @sumavg formula that is located in the Group Footer
@sumavg
whileprintingrecords;
numbervar sumavg := sumavg + {@VPG}/2;
This formula works correctly for the first employee but addes the previous value to the next employee.
Any help would be greatly appreciated.
MaryBeth
I have created a formula that calculated an average.
@vpg
sum ({@SalesVol}, {PAYABLES_LEDGER.PAY_WK})/Count ({@in period counter}, {PAYABLES_LEDGER.PAY_WK})
This works fine and calculates correctly for all emp
The problem is in my @sumavg formula that is located in the Group Footer
@sumavg
whileprintingrecords;
numbervar sumavg := sumavg + {@VPG}/2;
This formula works correctly for the first employee but addes the previous value to the next employee.
Any help would be greatly appreciated.
MaryBeth