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

By:   |   Comments   |   Related: > Sharepoint Design


Problem

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?

Solution

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.


sql server categories

sql server webinars

subscribe to mssqltips

sql server tutorials

sql server white papers

next tip



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

This author pledges the content of this article is based on professional experience and not AI generated.

View all my tips



Comments For This Article

















get free sql tips
agree to terms