1

我正在尝试计算子组的数量。

例如。

我的组如下:

Parent Group
      Child Group (on multiple columns)

例子:

Parent 1
    Child Group 1
        1
        2
        3
    Child Group 2
        1
        2
*Total: 2 *

Parent 2
    Child Group 1
        1
        2
*Total: 1 *

*这是我要计算的数字。有任何想法吗?

4

1 回答 1

2

In the Parent Group Scope you can just use something like:

=CountDistinct(Fields!ChildGroup.Value)

Substituting the name of your Child Group field as required.

For example, say your data is like this:

enter image description here

And you've set up a table with groups based on Parent and ChildGroup:

enter image description here

You can see I've added the above expression to the Parent Group footer row - it will count all the Child groups in the Scope of the current parent.

The report works as required:

enter image description here

于 2013-08-21T08:31:19.930 回答