a thought...I think you can avoid using a sub report.
If you group on Name and write 2 formuals to count/flag instances of each category
//CAt1
if category='Group1' then 1
//Cat2
if category='group2' then 1
and sum both formulas in the group footer you now can tell who has group 1 only...
SUM(@cat1,name)>0 and SUM(@cat2,name)=0
who has group 2 only...
SUM(@cat1,name)=0 and SUM(@cat2,name)>0
who has group 1 and group 2...
SUM(@cat1,name)>0 and SUM(@cat2,name)>0
you can use these in your group select criteria alog with your paramter(s)