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_Ssrs 2012 - Fatal编程技术网

Reporting services SSRS 2012表达式错误

Reporting services SSRS 2012表达式错误,reporting-services,ssrs-2012,Reporting Services,Ssrs 2012,从SSRS 2005升级到SSRS 2012后,我们的一份报告不再呈现,并给出以下错误: Microsoft.ReportingServices.ReportProcessingException: The specified operation is not valid 我已将其缩小为具有以下表达式的文本框: =CountDistinct(Fields!field1.Value) / (CountDistinct(Fields!field2.Value) - CountDistinct(Fi

从SSRS 2005升级到SSRS 2012后,我们的一份报告不再呈现,并给出以下错误:

Microsoft.ReportingServices.ReportProcessingException: The specified operation is not valid
我已将其缩小为具有以下表达式的文本框:

=CountDistinct(Fields!field1.Value) / (CountDistinct(Fields!field2.Value) - CountDistinct(Fields!field3.Value))
为什么这不再有效,我可以使用其他方法吗?文本框用于显示百分比,并指定了格式P1


非常感谢您的帮助。

t我们发现field3是一个经过计算的字段。我已经更新了SQL以填充字段3,现在一切正常