title: reset value by group in crystal report
body: <p>hi i write a formula in crystal report the similar to running total because i cannot use the running total filed for further calculation.but now i am facing a problem that i cannot reset the values by group. i have applied the formula 
  numbervar Sump; 
  Sump := Sump+{@Variance};</p>
  
  <p>and for resting purpose i added one more formula in the group header.
  whileprintingrecords;
  shared numbervar Sump := 0;</p>
  
  <p>the reset is not working. please find the snapshot and advice me how to do it.</p>
  
  <p><a href="https://i.stack.imgur.com/T8EW7.png" rel="nofollow noreferrer">enter image description here</a></p>