Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/reporting-services/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Reporting services 更改SSRS中tablix报告的行颜色_Reporting Services_Ssrs Tablix - Fatal编程技术网

Reporting services 更改SSRS中tablix报告的行颜色

Reporting services 更改SSRS中tablix报告的行颜色,reporting-services,ssrs-tablix,Reporting Services,Ssrs Tablix,我有一个tablix报告,希望根据条件更改行的颜色。我在BackgroundColor属性中使用以下表达式。但它不起作用 =IIF(Fields!name.Value= 123456, "White", "Yellow") 每当列(AccountID)中有值等于123456时,该行应显示为黄色 如果对这个表达式有任何建议。有几件事 您的表达式当前表示“如果AccountID=123456,则将背景设置为“白色”,如果未设置背景,则将背景设置为“黄色”,这

我有一个tablix报告,希望根据条件更改行的颜色。我在BackgroundColor属性中使用以下表达式。但它不起作用

=IIF(Fields!name.Value= 123456, "White", "Yellow")
每当列(AccountID)中有值等于123456时,该行应显示为黄色

如果对这个表达式有任何建议。

有几件事

您的表达式当前表示“如果AccountID=123456,则将背景设置为“白色”,如果未设置背景,则将背景设置为“黄色”,这与您所说的相反

检查字段名是否为
name
(区分大小写)

检查“帐户ID”列是否为数字,如果不是,请将字符串更改为“123456”(用引号括起来)