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 获取特定列值的SSRS矩阵行总数_Reporting Services - Fatal编程技术网

Reporting services 获取特定列值的SSRS矩阵行总数

Reporting services 获取特定列值的SSRS矩阵行总数,reporting-services,Reporting Services,在Microsoft Sql Server Reporting Services 2008 R2矩阵中,我想添加一列,显示一个数据项除以该行数据项总数的百分比 Total的表达式是=Sum(Fields!Count.Value)。如何从成功百分比访问行的成功总和,以便执行类似于=sum(Fields!Count.Value WHERE Fields!Name.Value=“Success”)/sum(Total)的操作 Adv.Name成功失败总成功百分比 A 2 8 10 20% B 10 0

在Microsoft Sql Server Reporting Services 2008 R2矩阵中,我想添加一列,显示一个数据项除以该行数据项总数的百分比

Total的表达式是
=Sum(Fields!Count.Value)
。如何从成功百分比访问行的成功总和,以便执行类似于
=sum(Fields!Count.Value WHERE Fields!Name.Value=“Success”)/sum(Total)
的操作

Adv.Name成功失败总成功百分比 A 2 8 10 20% B 10 0 10 100% C 8 2 10 80% ---------------------- 数据项 ----------- 列Grp总计


谢谢大家!

啊!这相当容易!另外,SUM中的EXPRESSION对每个数据项执行一次,允许我使用标准Iif语句进行必要的过滤

=SUM(Iif(Fields!Status.Value = "Success", Fields!Count.Value, 0))/SUM(Fields!Count.Value)
=SUM(Iif(Fields!Status.Value = "Success", Fields!Count.Value, 0))/SUM(Fields!Count.Value)