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 2012总和报告字段_Reporting Services_Aggregate - Fatal编程技术网

Reporting services 包含第一个聚合的SSRS 2012总和报告字段

Reporting services 包含第一个聚合的SSRS 2012总和报告字段,reporting-services,aggregate,Reporting Services,Aggregate,我的报告中的字段首先包含: = iif(First(Fields!Qty_BO.Value) <= 0, 0, iif(isnothing(first(Fields!Qty_BO.Value)) And sum(Fields!Qty_Shipped.Value) <= 0, 0, First(Fields!Qty_BO.Value) * first(Fields!unitprce.Value) ) ). = iif(Fi

我的报告中的字段首先包含:

=
iif(First(Fields!Qty_BO.Value) <= 0, 0, 
    iif(isnothing(first(Fields!Qty_BO.Value)) And sum(Fields!Qty_Shipped.Value) <= 0, 
         0, 
         First(Fields!Qty_BO.Value) * first(Fields!unitprce.Value)
    )
).  
=

iif(First(Fields!Qty\u BO.Value)为什么使用First而不是Sum

如果您尝试按行求和,只要您在分组上进行,它就应该工作,如果您有一个总计,只需在组外插入一行,它应该允许您对总计进行求和