Hello Mark.
Did you ever figure this one out?
I am trying to do the exact same thing, with groupings and attributes and I have tried multiple things but nothing so far works.
Any suggestions you may have on this would be extremely helpful!
Thanks
K