We need a lot more information to help you. What environment/programs are you using. The details of how you build/request this group type report.
What platform? What database? What reporting software? What table structure? What code are you trying? Much more is needed even to begin trying to help. — Tom