当我将IIF语句放入我的单元格时,它会在我的单元格中显示#Error。
**=IIF(Year(Fields!Date.Value) <= 2015 AND Month(Fields!End_Date.Value) <= 02 AND Lookup(Fields!Project.Value,Fields!Project.Value,Fields!company.Value, "ds_Projects")="ABC", "Available", "No")**
我想如果条件为真打印可用,如果为假则打印否。
答案 0 :(得分:0)
尝试将您的OR IIF合并到第一个。
=IIF((Year(Fields!Date.Value) <= 2015 AND Month(Fields!End_Date.Value) <= 02 AND
Lookup(Fields!Project.Value,Fields!Project.Value,Fields!company.Value, "ds_Projects")="ABC")
OR (Lookup(fields!a.value, fields!a.value, fileds!bill.value, "ds_projects")="xyz"), "Available", "No")