[英]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"))
看來您的IIF
條件已損壞。 這是固定版本。
=IIF(Fields!len.Value <= 27 AND Fields!len.Value > 27 AND Fields!Regular.Value > 0
,Fields!Retail.Value/Fields!oLastRegRetail.Value
,"N/A")
或者如果您嘗試進行嵌套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.