SSRS:如何在列表的不同单元格中显示分组行

时间:2016-08-01 23:38:15

标签: reporting-services

数据集返回以下形状的行。

+------------+---------------+-------------------+----
| Department | Full Name     | Bonus Recommen (%) |
+------------+---------------+-------------------+----
| Accounting | Jane Doe      |     3.00          |
+------------+---------------+-------------------+----
| Accounting | Phil Morris   |     1.05          |
+------------+---------------+-------------------+----
| Accounting | Aimee Jackson |     1.27
+------------+---------------+-------------------+----
| Production | Paul McDonald |     2.47
+------------+---------------+-------------------+----
| Production | John Doe      |     1.98
+------------+---------------+-------------------+----

我希望根据部门来确定个别表格,例如:

+------------------------------------------
|            Accounting 
+---------------+--------------------+----
| Full Name     | Bonus Recommen (%) |
+---------------+--------------------+----
| Jane Doe      |     3.00           |
+---------------+--------------------+----
| Phil Morris   |     1.05           |
+---------------+--------------------+----
| Aimee Jackson |     1.27           |
+---------------+--------------------+----

+------------------------------------------
|            Production
+---------------+--------------------+----
| Full Name     | Bonus Recommen (%) |
+---------------+--------------------+----
| Paul MacDonald|     2.47           |
+---------------+--------------------+----
| John Doe      |     1.98           |
+---------------+--------------------+----

感谢您的帮助

1 个答案:

答案 0 :(得分:2)

您可以通过分组获取布局:

  1. 添加一个表并将fullname和bonus放入表中。除掉 额外的空白列,因为RS默认会创建3列表
  2. 在IDE底部右键单击行组,然后单击添加组 - > 家长组,然后从下拉列表中选择部门
  3. 从上下文菜单中右键单击数据行级别的“部门”单元格 选择插入行 - > 内部群组 - 上方
  4. 将单元格标题(或只是输入全名和奖金)复制到此新添加的行
  5. 重复步骤3以添加另一行
  6. 从新添加的行中选择两个单元格,右键单击并单击合并 细胞
  7. 将部门单元格值复制到此合并单元格
  8. 右键单击最左侧的列(部门),然后选择删除列
  9. 希望它有所帮助。