I've created a dataview from a MOSS2007 form library. In the dataview, I've enabled grouping by a specific column and also was able to show the total (sum) of couple of columns like this, in the group heading:
<xsl:value-of select=”sum($nodeset/@Total_x0020_Cost)” />
in the group heading.
Have you done something like this? Please advise.