【问题标题】:Error on iif for color expression颜色表达式的 iif 错误
【发布时间】:2010-07-02 16:57:33
【问题描述】:

我的 SSRS 报告中有此声明。

=iif(
    ((Fields!lngCount2.Value-Fields!lngCount.Value)/Fields!lngCount.Value) > 0
        and Fields!strSegmentName.Value ="Struggler" 
        or Fields!strSegmentName = "Winback" 
        or Fields!strSegmentName.Value = "Former", 
            "Green" , 
                    iif(
                        ((Fields!lngCount2.Value-Fields!lngCount.Value)/Fields!lngCount.Value) < 0 
                            and Fields!strSegmentName.Value ="New" 
                            or Fields!strSegmentName = "Riser" 
                            or Fields!strSegmentName.Value = "High Value", 
                                "Green",
                                    "Red" )
)

我收到以下错误。

本地报告处理过程中发生错误。的定义 报告“主要报告”无效。的颜色表达式 文本框‘textbox8’包含错误:[BC30518] 重载分辨率 失败,因为无法使用这些参数调用可访问的“=”:

我该如何解决这个错误?

【问题讨论】:

    标签: reporting-services iif


    【解决方案1】:

    认为您缺少 Fields!strSegmentName = "Riser"or Fields!strSegmentName = "Winback" 上的“.value”

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-11-24
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多