SSRS报告。如何使用列表控件重复行组

时间:2012-02-14 21:17:19

标签: list reporting-services ssrs-2008

我希望能够显示类似以下内容的报告:

District1

Store Name     Product      Price per piece     Quantity sold     Total Price

XYZ store     Product1              10                  6                  60
              Product2               8                  5                  40

District2

Store Name     Product      Price per piece     Quantity sold     Total Price

XYZ store     Product1              11                  5                  55
              Product2              10                  4                  40

District3

Store Name     Product      Price per piece     Quantity sold     Total Price

ABC store     Product1               10                  5                  50
              Product2               7                   8                  56

District4
....
....
....
N区

数据存储在数据库中的方式是:

District      StoreName       Product       Price       Qty
District1 XYZ Store Product1 10 6
District1 XYZ Store Product2 8 5
District2 XYZ Store Product1 11 5
District2 XYZ Store Product2 10 4
District3 ABC Store Product1 10 5
District3 ABC Store Product2 7 8

我尝试使用List控件来重复行组但到目前为止没有运气。请帮忙。

1 个答案:

答案 0 :(得分:1)

  • 不要使用列表控件。改为使用Table控件。
  • 为商店名称添加一个组(没有组页眉或页脚)。
  • 为区域添加组(带有组标题),作为StoreName的父组。删除区域的分组列,并将区域字段添加到区域的组标题中,在StoreName分组列中。