2

我正在使用 Reporting Services 2016。我有 6 个图表,我只需要显示前 10 个结果。目前,如果报告仅返回 9 个类别组的值,则报告显示所有类别组(x 轴上的值),而不是前 10 个。(见下图)
我理解为什么会发生这种情况,但是我正在寻找解决方法,或者这在未来的版本中是否正确。

在此处输入图像描述

此外,如果我尝试使用表达式创建计算字段来标记哪些结果以显示是否有少于 10 个具有值。我收到一个错误,说聚合不能在过滤器中使用。

4

1 回答 1

0

The reason that you have so many bars in not because SSRS doesn't filter them out, it's because they are all tied for the 10th spot with zero value and SSRS TOP 10 will always show all ties for 10th place.

You need to implement a tiebreaker condition in your expression based on another value or additionally add another filter which removes zero values from your chart.

于 2017-12-20T21:18:34.860 回答