简体   繁体   English

SSRS 表达式帮助多个条件

[英]SSRS Expression help multiple Conditions

=IIF((Fields!len.Value<=27) AND (Fields!oLastRegRetail.Value>0) then Fields!Retail.Value/Fields!oLastRegRetail.Value) second if
=IIF(Fields!len.Value>27) AND (Fields!Regular.Value>0) then Fields!Retail.Value/Fields!Regular.Value if both false-"N/A"))

seems your IIF condition is broken.看来您的IIF条件已损坏。 Here's the fixed version.这是固定版本。

=IIF(Fields!len.Value <= 27 AND Fields!len.Value > 27 AND Fields!Regular.Value > 0
    ,Fields!Retail.Value/Fields!oLastRegRetail.Value
    ,"N/A")

or if your trying to do nested IIF或者如果您尝试进行嵌套IIF

=IIF(Fields!len.Value <= 27  and Fields!Regular.Value > 0
    ,Fields!Retail.Value/Fields!oLastRegRetail.Value
    ,IIF(Fields!len.Value > 27 and Fields!Regular.Value > 0
        ,Fields!Retail.Value/Fields!Regular.Value, "N/A")
)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM