I'm trying to return a green YES if equal to 1, else return a red NO. Which means it equals 0. I found this which I think is helpful but can't figure out how to piece it together.SSRS - Conditional Text Formatting (Expressions using Switch)
The below gives me an error
IIF(Fields!SurveyCompleted.Value = 1, "Green", "Red")
Error 4 [rsFieldReferenceAmbiguous] The Value expression for the text box ‘Textbox12’ refers directly to the field ‘SurveyCompleted’ without specifying a dataset aggregate. When the report contains multiple datasets, field references outside of a data region must be contained within aggregate functions which specify a dataset scope.
I got the following to accidentally work to change the text when trying to change the color.
=First(IIF(Fields!UniqueReportRequests.Value = 1, "Yes", "No"),"RawCompletionScore")
How can I combine both to change the color and text? The color expression needs the dataset "RawCompletionScore" declared?