2017-04-10 7 views
0

あるフィールドが別の3つの異なるフィールドと一致する場合、異なるテキスト色を表示する必要があります。ssrsは、フィールドが別のフィールドと一致するときに異なる色を表示します。

私は表現の下に書かれている、

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

しかし、その動作していません。

私はSSRSレポートビルダーを使用しています。

答えて

1

これはORの仕組みではありません。

あなたは、私はこのコードを使用する場合、それは `= IIF( フィールズ!OrderBlockLetter.Value =フィールド!InstitutionBlockLetter.Value、 "グリーン" は動作しません

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

...何かなどを使用する必要があり、 またはFields!OrderBlockLetter.Value = Fields!DegreeBlockLetter.Value、 "Orange"、 またはFields!OrderBlockLetter.Value =フィールド!AwardBlockLetter.Value、 "Blue"、 "No Color") ' – user2331670

+0

この場合、 ) '。詳細はこちらを参照してください。https://docs.microsoft.com/en-us/sql/reporting-services/report-design/expression-examples-report-builder-and-ssrs – BishNaboB

関連する問題