Grouping in SSRS?

心已入冬 提交于 2019-12-05 03:29:39

You have the following data in your Dataset:

Drag a table into the report and set its Dataset in the properties. Right click on the left of the table with the three lines and click Add Group -> Parent Group.

Group on the Jobnumber field, and check Include group header:

It will look like this:

Right click on the first column and choose Delete Columns.

Right click on the detail row and choose Delete Rows:

Click OK when prompted with Delete rows and associated groups?

Finally we need a table footer row - click on the bottom row and click Insert Row -> Outside Group - Below:

It should look like this:

Now add your data! Add new columns as required. When adding numeric data to these group and header fields, it will aggregate as a Sum by default:

Now the table is basically looking like the requirements; just format to taste:

Also, some links as requested:

Books Online, Adding Grouping and Totals (Reporting Services).

SQL Server Central, Tablix Tutorial.

These should be a good intro and are part of larger series of articles.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!