That's more complicated. I think you would have to save the report under another name and then use it as a subreport in a GH1a (country) section and link on the country field. Then in the sub, use a shared variable like this in the region group section (header or footer):
whileprintingrecords;
shared numbervar cnt;
if sum({@presentyr},{table.region})-sum({@previousyr},{table.region}) % sum({@previousyr},{table.region}) < 5 then
cnt := cnt else
cnt := cnt + 1;
In the country group header (still in the sub), use a reset formula like this:
whileprintingrecords;
shared numbervar cnt;
if not inrepeatedgroupheader then
cnt := 0;
In the country group footer, use:
whileprintingrecords;
shared numbervar cnt;
In the main report, go into the section expert->GH1_b (where your usual country group header fields are)->suppress->x+2 and enter:
whileprintingrecords;
shared numbervar cnt;
cnt = 0 //note no colon
To make the GH1a section disappear, remove the borders from the subreport, format the subreport to suppress if blank(format subreport->subreport tab->check "suppress blank subreport"), suppress all section WITHIN the subreport, and in the main report, format GH1a->check "suppress blank section".
-LB