The problem crops up when there are no records in the subreport that correlate to the main report for a given group. The Shared Variable seems to retain the previous groups value and adds that to the present group in the main report. How can I get the Shared Variable to set itself to '0 or null' when there are no records for that group in the subreport?