简体   繁体   中英

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. 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(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")
)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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