【问题标题】:SSRS formula gives error first function with iif condition gives errorSSRS 公式给出错误优先函数,iif 条件给出错误
【发布时间】:2016-02-01 06:11:30
【问题描述】:

您好,我需要给出 textbox148 和项目成本相乘的公式我还需要为轻量级用户选择项目。我在下面添加了公式,但它给出了错误

=ReportItems!Textbox148.value
*First(Fields!projectcost_per_Year.Value
(IIf(Fields!Light_user.Value="Yes",1,Nothing), "SAP"),"SAP")

【问题讨论】:

  • SAP 数据集是否有projectcostLight_user 字段?请注意,如果您使用First() 函数,它将返回数据集的第一行。

标签: reporting-services ssrs-2008 reporting ssrs-tablix reportbuilder3.0


【解决方案1】:
  1. 如果您需要进行计算,您应该将此 ReportItems!Textbox148.value 转换为 int/double/float 等。
  2. (IIf(Fields!Light_user.Value="Yes",1,0), "SAP"),"SAP"),我猜“Nothing”应该是“0”完成计算。

【讨论】:

    猜你喜欢
    • 2023-03-03
    • 2022-01-23
    • 1970-01-01
    • 1970-01-01
    • 2013-12-28
    • 1970-01-01
    • 1970-01-01
    • 2018-06-13
    • 2017-10-20
    相关资源
    最近更新 更多