Adding subtotals to SSRS report tablix

拥有回忆 提交于 2019-11-28 07:24:28

问题


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


回答1:


First, add a row group to your tablix:

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

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

Èt voila:



来源:https://stackoverflow.com/questions/24237465/adding-subtotals-to-ssrs-report-tablix

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