JeroenBoon
Technical User
Hello,
I have a report in which I group on costumer. For each costumer all the sales amounts are grouped and the footer is displayed. I use the top-N-expert to sort the costumers descending based on the grouptotals.
With a parameterfield I retrieve a number that I use to print the report conditional: only the groups with groupnumber<={?parameterfield} are displayed.
Now I want to make a subtotal for the displayed costumers. I use the next formule:
whileprintingrecords;
numbervar subtotal;
if groupNumber<=({?parameterfield}) then subtotal:=subtotal+Sum ({@amount}, {@costumer})
In each groupfooter I can place this numbervar and it works correctly, but I want to print the subtotal of the last displayed groupfooter somewhere else in the report.
Is there a way to do this?
Thanks,
Jeroen Boon.
I have a report in which I group on costumer. For each costumer all the sales amounts are grouped and the footer is displayed. I use the top-N-expert to sort the costumers descending based on the grouptotals.
With a parameterfield I retrieve a number that I use to print the report conditional: only the groups with groupnumber<={?parameterfield} are displayed.
Now I want to make a subtotal for the displayed costumers. I use the next formule:
whileprintingrecords;
numbervar subtotal;
if groupNumber<=({?parameterfield}) then subtotal:=subtotal+Sum ({@amount}, {@costumer})
In each groupfooter I can place this numbervar and it works correctly, but I want to print the subtotal of the last displayed groupfooter somewhere else in the report.
Is there a way to do this?
Thanks,
Jeroen Boon.