Do your records overlap within X/ by group?
ie If you sum the total from the summary total are you expecting it to add to the total, or do you need a separate distinct count because of the overlap?
If you need that distinction I can't think of an alternative 😞
Hopefully someone else can, so partially responding to see if there is a solution to this problem.