Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Adding subtotals to SSRS report tablix

say i have this record..

lastname  firstname  mi  checkno  amount  totalamount

lastname1 firstname1 mi1 k1234    5000
lastname2 firstname2 mi2 k1234    5000
lastname3 firstname3 mi3 k1234    5000
lastname4 firstname4 mi4 k90788   5000
lastname5 firstname5 mi5 k90788   5000
lastname6 firstname6 mi6 k90789   5000
                                          30000   

can i make this record to look like the following in ssrs?

lastname  firstname  mi  checkno  amount  totalamount

lastname1 firstname1 mi1 k1234    5000
lastname2 firstname2 mi2 k1234    5000
lastname3 firstname3 mi3 k1234    5000
                                          15000
lastname4 firstname4 mi4 k90788   5000
lastname5 firstname5 mi5 k90788   5000
                                          10000
lastname6 firstname6 mi6 k90789   5000
                                           5000   

hope anyone can help me fix this. thank you

like image 846
user3312649 Avatar asked Jun 16 '14 06:06

user3312649


1 Answers

First, add a row group to your tablix:

Adding a row group to a tablix

Specify that grouping should by on column "checkno", and also add a footer to the group (to hold the subtotals):

Grouping by a column

Finally, add the sum calculation in the group footer. Optionally remove the left-most column containing the group header name:

Adding a sum in the group footer

Èt voila:

enter image description here

like image 158
Dan Avatar answered Oct 09 '22 06:10

Dan