Multiple <GroupFooterTemplate> sections with multiple groupings

While it's easily possible to create multiple groupings in a datagrid (hierarchy grouping by different columns), I couldn't find a way to display totals for the different hierarchy levels: apparently only operates on the lowest level.
Or do I miss anything?
Thank you
Andrea