You will need to decide where you want it to be 'Reset', but once you know that, the rest is a piece of cake.
Create a formula that sets your shared variable to 0, like:
shared numbervar aVar :=0;
"" // I put this here so that nothing displays on the report.
Now just drag the formula onto the report where you want the variable reset.
Hope this helps