Why not just use an inserted running total? Select count of any recurring field, reset on change of group. Place the running total in the group footer.
If for some reason you need the manual method, you need three formulas:
//{@reset} to be placed in the group header:
whileprintingrecords;
numbervar cnt;
if not inrepeatedgroupheader then
cnt := 0;
//{@accum} to be placed in the detail section:
whileprintingrecords;
numbervar cnt := cnt + 1;
//{@display} to be placed in the group footer:
whileprintingrecords;
numbervar cnt;
dmc: You specifically stated that LB use a variable here, why?
In future posts why not include technical information and requirements, rather than demand a certain architecture be used.
Just insert a Running Total andselect reset for each group if you just need counts in a group. You can add criteria to the Evaluate Use a Formula if it's conditional.
What formulas did you use to set up the laggeds in the report footer? If you used variables to do this, you would just create an additional variable with a different name where you reset it in the service category group header, as in my previous example.
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.