For the aggregation of your data, take a look at this topic: sum a grouped data
It’s an exact parallel to what you’re trying to do here and should give you some ideas.
For the aggregation of your data, take a look at this topic: sum a grouped data
It’s an exact parallel to what you’re trying to do here and should give you some ideas.