Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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

https://i.sstatic.net/2XHL4.png

like image 734
sanket Avatar asked Nov 21 '25 05:11

sanket


2 Answers

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"))
like image 79
Mohamed Azizi Avatar answered Nov 22 '25 18:11

Mohamed Azizi


  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

like image 40
Jayasurya Satheesh Avatar answered Nov 22 '25 18:11

Jayasurya Satheesh



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!