Sql – SSRS – How to check all rows in a table

reporting-servicessqlsql server

I have a table in a report and a textbox that changes its background color based on the value(s) in the table. Right now I have the background color expression for the textbox set to:

=iif(Me.Value = ReportItems![NewValue].Value, "Yellow", "Transparent")

"NewValue" is the name of one of the columns in the table. The above works fine if the textbox value is in the very first row in the "NewValue" column, but not otherwise.

How do I fix this so it will work if the textbox value shows up in any row in the "NewValue" column?

Sorry, I'm a little new to Reporting Services and haven't seen any functions for table controls.

Best Answer

Instead of ReportItems![NewValue].Value, you can also use ReportItems("NewValue").Value, by the way