当一个字段与另外三个不同的字段匹配时,我需要显示不同的文本颜色。
我写了下面的表达,
=IIF(Fields!OrderBlockLetter.Value = Fields!InstitutionBlockLetter.Value or Fields!DegreeBlockLetter.Value or Fields!AwardBlockLetter.Value, "Green", "No Color")
但它不起作用。
我正在使用SSRS报告构建器。
答案 0 :(得分:1)
这不是OR的工作原理。
你需要使用像..
这样的东西=IIF(Fields!OrderBlockLetter.Value = Fields!InstitutionBlockLetter.Value or Fields!OrderBlockLetter.Value = Fields!DegreeBlockLetter.Value or Fields!OrderBlockLetter.Value = Fields!AwardBlockLetter.Value, "Green", "No Color")