SSRS - show row total in column

怎甘沉沦 提交于 2019-12-13 03:44:07

问题


I am working on SSRS 2008.

I have a report as follows, I want the toal of Amount in Total column. I am not able to get total in column. I have tried Add Total / Sum() features of SSRS but no luck.

+---------+-------+--------+-------+                                          
|Supplier | Agent | Amount | Total |
+---------+-------+--------+-------+
|         | A10051| 237.2  |       |
|S2005068 +-------+--------+       |       
|         |A10052 | 23.8   |       |
+---------+-------+--------+-------+

回答1:


I think your design is not proper. The total row in the last column will be under the details group. If you want a total on the last column you can get but for-each row it will repeat. use

=Sum(Fields!Amount.Value,"Supplier") here Supplier is the "Group Name"

To avoid this repeatition we need to add the total column inside the supplier group and use =Sum(Fields!Amount.Value) for total

or

Right click on the Amount column data -> Add Total -> Before or After. This will display the sub-total for the Supplier group in the same Amount column after/before as you selected.




回答2:


Add total on the supplier group, add it before or after, depending if you want it on top or bottom. SSRS will fill in =SUM(Fields!Amount.Value) and show the total 268 below.




回答3:


To make a Total Rows =countRows("dataset")



来源:https://stackoverflow.com/questions/10029378/ssrs-show-row-total-in-column

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