获取 Nan 错误 SSRS
Getting a Nan Error SSRS
出现 NaN 错误。我的原话是:
=SUM(Fields!Outstanding_Commitments.Value/Fields!Conversion.Value, "Cost")
收到 NaN 错误后,我将代码更改为以下内容:
=IIF(Double.IsNAN(SUM(Fields!Outstanding_Commitments.Value/Fields!Conversion.Value, "Cost"))
,0,
SUM(Fields!Outstanding_Commitments.Value/Fields!Conversion.Value, "Cost"))
使用第二部分根本没有为我提供任何值。有点不对。
提前致谢
试试下面的表达式
=SUM(
Iif(Fields!Conversion.Value=0,0,Fields!Outstanding_Commitments.Value)
/
Iif(Fields!Conversion.Value=0,1,Fields!Conversion.Value)
, "Cost")
出现 NaN 错误。我的原话是:
=SUM(Fields!Outstanding_Commitments.Value/Fields!Conversion.Value, "Cost")
收到 NaN 错误后,我将代码更改为以下内容:
=IIF(Double.IsNAN(SUM(Fields!Outstanding_Commitments.Value/Fields!Conversion.Value, "Cost"))
,0,
SUM(Fields!Outstanding_Commitments.Value/Fields!Conversion.Value, "Cost"))
使用第二部分根本没有为我提供任何值。有点不对。
提前致谢
试试下面的表达式
=SUM(
Iif(Fields!Conversion.Value=0,0,Fields!Outstanding_Commitments.Value)
/
Iif(Fields!Conversion.Value=0,1,Fields!Conversion.Value)
, "Cost")