Total Row Count for Grouped Values in SSRS 2008

不问归期 提交于 2019-11-30 16:54:30

问题


I have a report that displays names of all accounts and activities performed under each of them.

AccountName: ABC Corp Activity: Installation

I want to group the AccountName and get the total number of Activities performed for each account.

ABC Corp: 1

How can I accomplish this in SSRS 2008? I am able to group the AccountName but I need a way to convert the Activity column to int so I can get the total.

Help appreciated!


回答1:


You can add a total row for the Account group and give your total field the expression CountRows("AccountGroupName"), to count the Activity detail rows for each Account group.

You can also put the total value at the level of the group row / group header.

More details about Function CountRows could be found here: http://msdn.microsoft.com/en-us/library/ms156330(v=sql.100).aspx




回答2:


You can put CountRows() in an expression within a group and it will show the row count for each grouping.



来源:https://stackoverflow.com/questions/16320495/total-row-count-for-grouped-values-in-ssrs-2008

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