在父组中显示子组总计

时间:2015-04-02 17:21:06

标签: sql-server ssrs-2008 ssrs-2008-r2 bids

我的报告有4组。按层次结构列出的组是:

member name
plan
status
open/closed

我需要在会员级别一起显示所有详细信息,在详细信息之后我需要显示打开/关闭,状态,计划,成员的总数。

我将尝试概述报告的外观。

Member1
name  plan   joined_date status open/closed term_date amount_paid amount_due
john  plan1  04/02/15  Approved open  10/16/2018  20045.00  1045.00
kate  plan1  04/02/15  paid     closed 10/16/2018 1080.00   1080.00
charles plan1 04/02/15 paid open 10/16/2018 11956.00 956.00
smith plan2 04/02/15 denied closed 10/16/2018 2500.00 0.00
thomas plan2 04/02/15 approved open 10/16/2018 34590.00 1590.00

Plan1  number of details:3
approved/open  number of details:1   20045.00   1045.00
paid/open   number of details:1   11956.00   956.00
paid/closed   number of details:1   1080.00   1080.00
denied/closed   number of details:0  0.00  0.00

Plan2  number of details:2
approved/open  number of details:1   34590.00  1590.00
paid/open   number of details:0
paid/closed   number of details:0
denied/closed   number of details:1   2500.00   0.00

total for member1 number of details:5  110,000.00  89,987.60

总计中定义的状态/打开/关闭只有4种变体。但是可以有多个计划和多个成员。

我不能在细节中间提供状态和计划的总计。

1 个答案:

答案 0 :(得分:0)

我发现了。 我删除了子组计划状态并打开/关闭了详细信息,并添加了包含组计划,状态和打开/关闭的新表。为新表的详细信息行添加了Total并隐藏了详细信息行。