An example would be to right click the group header and select insertt section below. Create a formula in GH1A with something like:
whileprintingrecords;
shared numbervar SubNum := 0;
Place the subreport in GH1B and create a formula within the subreport with something like:
whileprintingrecords;
shared numbervar SubNum := sum({table.value});
or whatever you need.
In the Details or the Group Footer you can now reference the value using something like
whileprintingrecords;
shared numbervar SubNum;
If Subnum <> 0 then
Table.value} / Subnum
else
0
You can run the subreport at any level, but if you're doing so by groups, reset the value before the subreport fires, and use it afterwards.
-k