It seems that you are looking for grouping the data and calculate some aggregations (e.g. SUM) to the group member.
How to do is described here:
It seems that you are looking for grouping the data and calculate some aggregations (e.g. SUM) to the group member.
How to do is described here: