简体   繁体   English

如何在SSRS中编写条件以根据值动态改变单元格的颜色

[英]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 如何在SSRS中编写条件以根据值动态改变单元格的颜色

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

  1. Choose the Cell / Row / Column that you want to Change the color dynamically 选择要动态更改颜色的单元格/行/列
  2. Go to Properties (Hit F4) 转到属性(按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 有关详细信息,请参阅此链接

尝试这样的事情:

=IIf((Fields!nbday.Value >= 0 and Fields!nbday.Value < 90) ,"#3174c3",IIf((Fields!nbday.Value >= 90 and Fields!nbday.Value < 120),"#02C1D3","No Color"))

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM