Two options:
- edit the running total field and reset it after each group (it is now generating a total for all records).
- use a summarized field - select the field in the
details
section and choose Insert | Summarized Field...
I would also suggest reading a book on the topic.