当字段与另一个字段匹配时,ssrs显示文本不同的颜色

时间:2017-04-10 11:58:38

标签: reporting-services fonts colors ssrs-2008 ssrs-tablix

当一个字段与另外三个不同的字段匹配时,我需要显示不同的文本颜色。

我写了下面的表达,

=IIF(Fields!OrderBlockLetter.Value = Fields!InstitutionBlockLetter.Value or Fields!DegreeBlockLetter.Value or Fields!AwardBlockLetter.Value, "Green", "No Color")

但它不起作用。

我正在使用SSRS报告构建器。

1 个答案:

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