【发布时间】:2019-03-14 14:41:46
【问题描述】:
根据一些变量构建报告并更改颜色。如果是休息学期,则将颜色设为“Gainsboro”。如果出勤率小于 0.4 且不为空,则将颜色设为“#ffc7ce”
我完全不明白为什么这段代码不能运行,看起来很简单。
=IIF(fields!Break_Semester <> "Break Semester"
,IIF(len(Fields!Attendance.Value) <> 0 and Fields!Attendance.Value < 0.4
,"#ffc7ce"
,"Gainsboro")
,"Gainsboro")
代码在运行时有效:
=IIF(len(Fields!Attendance.Value) <> 0 and Fields!Attendance.Value < 0.4
,"#ffc7ce"
,"Gainsboro")
所以我不确定为什么嵌套搞砸了。
任何指针?
【问题讨论】:
标签: if-statement reporting-services expression ssrs-2012