Based on your inputs and outputs, it is very doable.
Create a Totals query; GroupBy Group for the first column, use the aggregate function Count on the ID field and the Sum function on the var fields. A couple of red flags:
- I hope you have not actually named your field "Group"
- if you end up with a new Var, do you need to add a new field to your table? If so, this is not optimal (probably the db is not normalized).
The more we hear silence, the more we begin to think about our value in this universe.
Paraphrase of Professor Brian Cox.