过滤SSRS中的报告组

时间:2011-07-19 19:58:40

标签: reportingservices-2005

我有非规范化数据集:

ID, PaperId,    PaperTitle, IsDelivered,    IsRejected
1   123         AAA         1               1
2   123         AAA         1               0
3   111         BBB         1               0
4   111         BBB         1               0
5   123         AAA         1               0
6   155         CCC         1               0
7   123         AAA         1               1
8   155         CCC         1               0
9   155         CCC         1               0

我根据PaperId对表级进行了分组 - 为Evrey Paper总结“IsDelivered - IsRejected”:

PaperTitle, Count (IsDelivered - IsRejected)
AAA         2
BBB         2
CCC         3

现在如何向此群组添加过滤器?让我们说我只想看看前1篇论文 - 基于“计数”:

PaperTitle, Count (IsDelivered - IsRejected)
CCC         3

1 个答案:

答案 0 :(得分:0)

您可以添加服务器端过滤器。

对于top-n过滤器,添加参数@TopCount并将数据集查询转换为表达式。类似的东西:

="SELECT TOP " & @Parameter!TopCount.Value & " PaperTitle, CountValue FROM PaperTable ORDER BY CountValue"

HTH。