Yaseen Mohammed
Yaseen Mohammed

Reputation: 13

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

Upvotes: 0

Views: 55

Answers (1)

Ed Bangga
Ed Bangga

Reputation: 13006

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

Upvotes: 1

Related Questions