【问题标题】:#Error in Column With both Text and Numeric Values in ssrs reports#Error in Column with Text and Numeric Values in ssrs 报告
【发布时间】:2014-10-21 07:38:48
【问题描述】:

在我的一个字段的报告中,我有数字和文本值。(即 10.546 和“变化”) 因此,当我为此字段值应用 CDec 函数时,我得到 #error 我已将值归档为“Vary”。

10.6572 10.6572 变化#Error

我试过表达“ =IIf(IsNumeric(Fields!price.Value), CDec(字段!价格。价值), “字段!价格。价值)”

但它不起作用。 在大多数情况下,我都在网上签入了所有写函数,不幸的是,在我的项目中这是不允许的。 他们有什么办法可以用表达式解决这个“#Error”。

【问题讨论】:

    标签: reporting-services report


    【解决方案1】:

    我得到了解决方案。 =iif(IsNumeric(Fields!EUnit.Value), VAL(Fields!EUnit.Value),Fields!EUnit.Value)

    这对我来说很好。

    参考:https://social.msdn.microsoft.com/Forums/sqlserver/en-US/ac2c9db4-85a5-44a8-909b-1ee09791542e/ssrs-check-if-the-field-value-is-numeric-or-not?prof=required

    【讨论】:

      猜你喜欢
      • 2022-11-20
      • 2022-12-28
      • 2018-11-07
      • 1970-01-01
      • 1970-01-01
      • 2022-12-02
      • 2022-11-09
      • 2021-12-27
      • 1970-01-01
      相关资源
      最近更新 更多