3

How to write the condition in SSRS for dynamically changing color of the cell based on value

https://i.stack.imgur.com/2XHL4.png

Alan Schofield
  • 19,839
  • 3
  • 22
  • 35
sanket
  • 59
  • 8
  • 1
    This existing answer might help you: [change color depending on value SSRS](https://stackoverflow.com/questions/34724228/change-color-depending-on-value-ssrs) – Niranjan Rajawat Nov 07 '17 at 08:57

2 Answers2

2
  1. Choose the Cell / Row / Column that you want to Change the color dynamically
  2. Go to Properties (Hit F4)
  3. Select Back Ground Color and Choose Expression
  4. In the provided window, Give your Expression based on which the color will change.

Refer This Link for more details

Jayasurya Satheesh
  • 7,826
  • 3
  • 22
  • 39
2

try something like this:

=IIf((Fields!nbday.Value >= 0 and Fields!nbday.Value < 90) ,"#3174c3",IIf((Fields!nbday.Value >= 90 and Fields!nbday.Value < 120),"#02C1D3","No Color"))
Mohamed Azizi
  • 144
  • 1
  • 4
  • 14