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

ssrs show text different colour when field matches with another field

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

我在下面写了表达式,

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

但它不起作用。

我正在使用 SSRS 报表生成器。

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