如何在SSRS中获得TIES销售额前10名

时间:2014-11-01 09:25:54

标签: sql-server reporting-services ssrs-2012

我正在按照SSRS 2012中的产品类别分组销售量Top 10。我需要这些前10名的总数,但它显示了完整的总数。

为此,我在组内使用了运行值,并在下面写了隐藏表达式。这绝对适用于top 10 rows and rows less than 10 ..在我的报告搜索基于TaxID ..因此可能有总和关系的机会..!所以这种情况是失败的

注意:这条件适用于排名前10行且行数小于10 ...但只有超过10行的失败行意味着最高销售关系。(If 10th and 11th category sales are same those are pulling up into report..but sum is making problem for me

=IIf(RunningValue(Fields!grp.Value, CountDistinct, Nothing) = 10
or (RunningValue(Fields!grp.Value, CountDistinct, Nothing) = CountDistinct(Fields!grp.Value, "DataSet1") and CountDistinct(Fields!grp.Value, "DataSet1") < 10)
, false
, true)

我无法在数据集级别上执行此操作,因为我需要报表中其他部分的完整数据集。提前谢谢。

0 个答案:

没有答案
相关问题