SSRS Field Expression to change the background color of the Cell

前端 未结 6 2271
梦谈多话
梦谈多话 2020-12-06 00:23

I\'m trying to write a field expression for a Cell in my report where I have to change the background color of the cell depending on the string value in the cell. Ex: if the

6条回答
  •  孤城傲影
    2020-12-06 00:49

    The problem with IIF(Fields!column.Value = "Approved", "Green") is that you are missing the third parameter. The correct syntax is IIF( [some boolean expression], [result if boolean expression is true], [result if boolean is false])

    Try this

    =IIF(Fields!Column.Value = "Approved", "Green", "No Color")
    

    Here is a list of expression examples Expression Examples in Reporting Services

    IIF in SSRS report

提交回复
热议问题