Learn more about SQL Server tools

mssqltips logo

Tutorials          DBA          Dev          BI          Career          Categories          Webcasts          Scripts          Today's Tip          Join

Tutorials      DBA      Dev      BI      Categories      Webcasts

DBA    Dev    BI    Categories


How To Effectively Use SharePoint List Views - Part 3 (Grouping and Summarizing)

By:   |   Updated: 2010-08-18   |   Comments   |   Related: > Sharepoint


In a SharePoint List, sometimes you need to display information in groups and perform mathematical operations like sum, averages and others. For instance, what if you want to see the total monthly salary paid to employees for an individual department?


SharePoint List Views provide features like "Group by" and "Totals" in order to show advanced results.

I have created a sample employee list which contains basic employee information like name, id, age, department and salary.

employee list

For a summation of salary, click on the "Modify this View" at the top right near the view name, "EmployeeView" in our case.

employee list

Move to the "Totals" area.

customize settings

All column names will be listed on which mathematical operations can be performed. You can perform different mathematical calculations like Average, Maximum, Minimum and others. For our case, Select "Sum" in the Total column next to "Salary".

customize settings

Click on "OK" and now you will be able to see the total of salary for all departments.

employee list

In order to display totals for individual departments, click on "modify view" and move to the "Group By" Section.

customize settings

Select an appropriate field in the "Group By" field -- like "Department" in our case.

customize settings

Click "OK" to apply changes.

At first you will be able to see the totals for all departments.

employee list

To see totals for individual department, "Expand" individual departments by clicking on the "+" sign.

employee list

There you have it!

Next Steps
  • Create List views by implementing several combinations of Totals, Group By and others to calculate information in different groups.
  • Use other features like Mobile View, Item Limits and others to provide an enriched view for specific information.
  • Check out MSSQLTips.com for great information about Microsoft SQL Server.

Last Updated: 2010-08-18

get scripts

next tip button

About the author
MSSQLTips author Rahul Mehta Rahul Mehta is a Project Architect/Lead working at Tata Consultancy Services focusing on ECM.

View all my tips

Post a comment or let the author know this tip helped.

All comments are reviewed, so stay on subject or we may delete your comment. Note: your email address is not published. Required fields are marked with an asterisk (*).

*Name    *Email    Email me updates 

Signup for our newsletter
 I agree by submitting my data to receive communications, account updates and/or special offers about SQL Server from MSSQLTips and/or its Sponsors. I have read the privacy statement and understand I may unsubscribe at any time.


Learn more about SQL Server tools