简体   繁体   English

通过表达 SSRS 改变颜色

[英]Changing color through expression SSRS

I am trying to change the background color of a row where the value is more than 1 with an expression.我正在尝试使用表达式更改值大于 1 的行的背景颜色。 I have copied the following code from an earlier thread related to this issue but is not working for me.我从与此问题相关的早期线程中复制了以下代码,但对我不起作用。

= IIF(fields!OpenstaandeTijdInUren.value = >1, "Orange")

When I try to save it I get the following error statement:当我尝试保存它时,我收到以下错误语句:

在此处输入图片说明

你可以试试这个 -

=IIF(Fields!OpenstaandeTijdInUren.Value > 1, "Orange", "No Color")

instead of "fields" and "value" you need to capitalise the v and f, so the correct expression would be =IIF(Fields!OpenstaandeTijdInUren.Value >=1, "Orange") , although from the wording of your question, you might want to use > instead of >= .而不是“字段”和“值”,您需要将 v 和 f 大写,因此正确的表达式是=IIF(Fields!OpenstaandeTijdInUren.Value >=1, "Orange") ,尽管从您的问题的措辞来看,您可能想使用>而不是>= SSRS expressions are case sensitive. SSRS 表达式区分大小写。 You should probably also put something in the false side of the check, maybe "Transparent".您可能还应该在支票的错误一侧放一些东西,也许是“透明”。

=IIF(Fields!OpenstaandeTijdInUren.Value >=1, "Orange","Transparent")

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

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