3

我有一个按 Field1 的报告组,按页面分隔,在每个页面中我按 Field2 分组。

所以,我的页面是:

      Field1     Field2      SUM(Volume)

      ...

                 Total       SUM(Volume) --This is the value that I want to use!!

我有一个 Volume 字段,我想做一个百分比:

Sum(Fields!Volume.Value)是值的聚合,正确
sum(Fields!Volume.Value, "DataSet2")的是所有内容的总和,这是不正确的,因为我想要每一页的总和。

我在做:

=(Sum(Fields!Volume.Value) * 100) / sum(Fields!Volume.Value, "DataSet1")

我正在使用 Report Builder 2.0,但无法更改。

我希望我能解释清楚自己,

谢谢!

4

1 回答 1

3

You can do aggregations with the total of a group (in this case, the Field2 group), using it as if it were a dataset. So, try this:

(Sum(Fields!Volume.Value) * 100) / sum(Fields!Volume.Value, "Field2")

But replace Field2 with the actual name of that group.

于 2012-02-17T15:42:19.760 回答