Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2008 Forums
 Analysis Server and Reporting Services (2008)
 Grouping total in SSRS

Author  Topic 

sandesh.ravi
Posting Yak Master

110 Posts

Posted - 2011-11-10 : 07:31:05
I have two groupings in a table in SSRS

Group 1 on product code and count
Group 2 on type and count

I need to display the sum of the count of the rows group 1.

Example

AAAA 5
124 3
234 2
BBBB 10
456 5
789 3
145 2

Total 15

AAAA and BBBB are the result set of group 1
124,234,456,789,145 are the result set of group 2

I need to display the total of 15 as the last row of the table.

Kindly let me know how to do this.



Thanks,
Sandesh

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2011-11-10 : 09:50:35
you need to use multiple groups in report and in group headers you can add aggregation function like =Sum(Fields!youtfield.value to get total. Add table footer to get grand total

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page

sandesh.ravi
Posting Yak Master

110 Posts

Posted - 2011-11-10 : 10:04:28
Thanks visakh.

Thanks,
Sandesh
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2011-11-10 : 10:50:41
wc

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page
   

- Advertisement -