SSRS Field Expression to change the background color of the Cell

前端 未结 6 2272
梦谈多话
梦谈多话 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条回答
  •  旧时难觅i
    2020-12-06 00:45

    Make use of using the Color and Backcolor Properties to write Expressions for your query. Add the following to the expression option for the color property that you want to cater for)

    Example

    =iif(fields!column.value = "Approved", "Green","")
    

    iif needs 3 values, first the relating Column, then the second is to handle the True and the third is to handle the False for the iif statement

提交回复
热议问题