I have a table in a Sharepoint 2010 data view with a column that is calculated as follows:
<td>
<xsl:variable name="CurrentYear" select="ddwrt:FormatDateTime(string(ddwrt:Today()),1033,'yyyy')"/>
<xsl:variable name="YearOfWork" select="$thisNode/@Year"/>
<xsl:choose>
<xsl:when test="number($YearOfWork) = number($CurrentYear) - 1">
<xsl:value-of select="number(@_x004a_an116)"/>
</xsl:when>
<xsl:when test="number($YearOfWork) + 1 = number($CurrentYear) - 1">
<xsl:value-of select="number(@_x004a_an1)"/>
</xsl:when>
<xsl:when test="number($YearOfWork) + 2 = number($CurrentYear) - 1">
<xsl:value-of select="number(@_x004a_an1)"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="number(0.00)"/>
</xsl:otherwise>
</xsl:choose>
</td>
At the bottom of the column I would like to get the total of all the values in the column. Is there a way to do this?
Thanks in advance!