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


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

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.


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





Comments For This Article





download


Recommended Reading

Developer Dashboard in SharePoint 2010

Taking Control of Checked Out Documents in SharePoint

Reading SharePoint Lists with Integration Services 2017

Understanding SharePoint Exports to Excel

Recover a deleted SharePoint site or site collection with the *New* Site Recycle Bin





get free sql tips
agree to terms


Learn more about SQL Server tools