You can use variables to do this. Create four formulas:
//{@Reset} for the higher order group header:
whileprintingrecords;
numbervar sumx;
if not inrepeatedgroupheader then
sumx := 0;
//{@accum} to be placed in the section containing your shared variable (which I'll call x), which is below the section containing your subreport:
whileprintingrecords;
shared numbervar x;
numbervar sumx := sumx + x;
numbervar gtx := gtx + x;
//{@displaysumx} to be placed in the higher order group footer:
whileprintingrecords;
numbervar sumx;
//{@displaygtx} to be placed in the report footer:
whileprintingrecords;
numbervar gtx;
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.