SQL Server Reporting Services:使用表/矩阵向导时单元格值不重复

use*_*911 3 reporting-services ssrs-grouping ssrs-tablix

我有一个数据集,显示了工人使用四种测试类型以及他们的主管和主管上方的主管对各种技能的分数.为了节省空间,下面的数据集示例仅适用于一个工作者.这就是我的开始:

Director Supervisor Worker Test Skill Score
Doris Smith Jane Awe Lorina Marc Overall 1: Identifying Support 1
Doris Smith Jane Awe Lorina Marc Test A 1: Identifying Support 4
Doris Smith Jane Awe Lorina Marc Test B 1: Identifying Support 1
Doris Smith Jane Awe Lorina Marc Test C 1: Identifying Support 5
Doris Smith Jane Awe Lorina Marc Overall 2: Tracking the Sequence 3
Doris Smith Jane Awe Lorina Marc Test A 2: Tracking the Sequence 2
Doris Smith Jane Awe Lorina Marc Test B 2: Tracking the Sequence 5
Doris Smith Jane Awe Lorina Marc Test C 2: Tracking the Sequence 5
Doris Smith Jane Awe Lorina Marc Overall 3: Searching for Exceptions 3
Doris Smith Jane Awe Lorina Marc Test A 3: Searching for Exceptions 3
Doris Smith Jane Awe Lorina Marc Test B 3: Searching for Exceptions 3
Doris Smith Jane Awe Lorina Marc Test C 3: Searching for Exceptions 3
Run Code Online (Sandbox Code Playgroud)

我使用表向导或矩阵向导将其提供给SQL Server Reporting Services.我必须在" 得分"列上移动"技能"列,以便技能现在是列.

行组:主管,主管,工人测试 专栏组:技能 价值:分数

我明白了:

Director    Suprviser   Worker  Test    1: Identifying  Support     2: Tracking the Sequence    3: Searching for Exceptions
Doris Smith Jane Awe    Lorina Marc Overal  1   3   3
            Test A  4   2   3
            Test B  1   5   3
            Test C  5   5   3
        Al Vega Overal  5   5   3
            Test A  3   3   2
            Test B  2   4   4
            Test C  5   2   5
        David  Osorio   Overal  1   1   3
            Test A  2   4   2
            Test B  4   5   1
            Test C  2   3   2
    Katie Lewis Ally McIntosh   Overal  1   2   3
            Test A  5   3   4
            Test B  3   3   2
            Test C  1   3   2
        Christina Gooderd   Overal  2   2   1
            Test A  4   4   1
            Test B  5   5   4
            Test C  2   5   4
Run Code Online (Sandbox Code Playgroud)

我需要在每个单元格中都有一个值,因此需要为每个组重复这些值.所以,我想要的应该是这样的:

Director    Suprviser   Worker  Test    1: Identifying  Support     2: Tracking the Sequence    3: Searching for Exceptions
Doris Smith Jane Awe    Lorina Marc Overal  1   3   3
Doris Smith Jane Awe    Lorina Marc Test A  4   2   3
Doris Smith Jane Awe    Lorina Marc Test B  1   5   3
Doris Smith Jane Awe    Lorina Marc Test C  5   5   3
Doris Smith Jane Awe    Al Vega Overal  5   5   3
Doris Smith Jane Awe    Al Vega Test A  3   3   2
Doris Smith Jane Awe    Al Vega Test B  2   4   4
Doris Smith Jane Awe    Al Vega Test C  5   2   5
Doris Smith Jane Awe    David  Osorio   Overal  1   1   3
Doris Smith Jane Awe    David  Osorio   Test A  2   4   2
Doris Smith Jane Awe    David  Osorio   Test B  4   5   1
Doris Smith Jane Awe    David  Osorio   Test C  2   3   2
Doris Smith Katie Lewis Ally McIntosh   Overal  1   2   3
Doris Smith Katie Lewis Ally McIntosh   Test A  5   3   4
Doris Smith Katie Lewis Ally McIntosh   Test B  3   3   2
Doris Smith Katie Lewis Ally McIntosh   Test C  1   3   2
Doris Smith Katie Lewis Christina Gooderd   Overal  2   2   1
Doris Smith Katie Lewis Christina Gooderd   Test A  4   4   1
Doris Smith Katie Lewis Christina Gooderd   Test B  5   5   4
Doris Smith Katie Lewis Christina Gooderd   Test C  2   5   4
Run Code Online (Sandbox Code Playgroud)

我该修复/更改/修改什么,以便我可以在每个单元格中填入一个值?

Ian*_*ton 10

正如您所见,SSRS以不同方式处理行标题单元格,即在任何子组上拉伸它们.

您的报告可能看起来像这样:

在此输入图像描述

我突出显示了分隔报告区域的虚线.此示例报告与您的示例具有相同的问题:

在此输入图像描述

为了解决这个问题,需要将各种行组值从行标题区域移动到主报告区域.

首先,删除左边四行 - 出现提示时,选择仅删除列.

在此输入图像描述

您应该只保留技能列.

右键单击并插入列 - >外部组 - 左侧.

在此输入图像描述

使用" 插入列 - 左"继续添加列.

在此输入图像描述

获得足够的新列后,添加各种分组值.该报告应如下所示:

在此输入图像描述

请注意," 技能"列和" 测试"列之间现在没有虚线.

现在,根据需要为每一行重复组值:

在此输入图像描述