Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/reporting-services/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Reporting services Reporting Services—在组中查找价值_Reporting Services_Grouping_Aggregate Functions - Fatal编程技术网

Reporting services Reporting Services—在组中查找价值

Reporting services Reporting Services—在组中查找价值,reporting-services,grouping,aggregate-functions,Reporting Services,Grouping,Aggregate Functions,我有一列包含三个可能的值: -1、0和任何大于0的值 在每个组中,我必须验证所有值是否都等于-1,以及是否存在几乎为0的值。 可能吗 我试着用这种方式来解决它: =IIf(CountDistinct(Fields!Flag_09.Value,"Group1") = CountRows("Group1") And First(Fields!Flag_09.Value = "-1"), "-", [ ???? ]) 谢谢据我所知,您希望查看组中的所有详细信息行是否为-1,然后执

我有一列包含三个可能的值:

-1、0和任何大于0的值

在每个组中,我必须验证所有值是否都等于-1,以及是否存在几乎为0的值。 可能吗

我试着用这种方式来解决它:

=IIf(CountDistinct(Fields!Flag_09.Value,"Group1") = CountRows("Group1")
     And First(Fields!Flag_09.Value = "-1"), "-",
     [ ???? ])

谢谢

据我所知,您希望查看组中的所有详细信息行是否为-1,然后执行一些操作。幸运的是,您的数据提供了一个非常简单的解决方案:

=IIF(CountRows("Group1") = 0 - SUM(Fields!MyField.Value), "-", "They aren't all -1")

也就是说,如果行数等于该字段总和的负数,则所有字段中都有-1

我不明白你所说的“如果现在几乎为0”是什么意思,你能进一步解释一下吗?