Tuesday, July 14, 2009

How to get Sum of any column in DataView Web Part in SharePoint

Hi,
Another basic requirement of client if you are using the DVWP in your project. Show the total of any column. I spent 3-4 hours to get it down but finally i found that.

Find sum of any column in DVWP

{xsl:value-of select="sum(/dsQueryResponse/Rows/Row/@fld_EmployeeSalary)" /}

Replace curly brackets with angular brackets
You had done that here.

Enjoy!!!
Kuldeep Kadyan

No comments: