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 IIF和开关功能_Reporting Services_Ssrs 2012_Ssrs Tablix - Fatal编程技术网

Reporting services SSRS IIF和开关功能

Reporting services SSRS IIF和开关功能,reporting-services,ssrs-2012,ssrs-tablix,Reporting Services,Ssrs 2012,Ssrs Tablix,我有一个报告,其中我想根据列值更改列(sales)的背景色。下面是大陆列的值。 我在Sales栏(背景色)下尝试了以下表达式 预览报告时,我只能看到所有行的绿色。我知道SSRS中的Switch函数将返回它找到的第一个表达式。 我也试过只使用IIF条件,还是一样的问题。有没有办法做到这一点?您是否尝试过以下方法 =IIF((Fields!column.Value ="4th Quarter") AND (Fields!continents.Value ="Asia&

我有一个报告,其中我想根据列值更改列(sales)的背景色。下面是大陆列的值。

我在Sales栏(背景色)下尝试了以下表达式

预览报告时,我只能看到所有行的绿色。我知道SSRS中的Switch函数将返回它找到的第一个表达式。

我也试过只使用IIF条件,还是一样的问题。有没有办法做到这一点?

您是否尝试过以下方法

=IIF((Fields!column.Value ="4th Quarter") AND (Fields!continents.Value ="Asia"),"Green",
     IIF((Fields!column.Value ="4th Quarter") AND (Fields!continents.Value = "N America"),"LIMEGREEN",
        IIF((Fields!column.Value ="4th Quarter") AND (Fields!continents.Value ="S America"),"Yellow",
            IIF((Fields!column.Value ="4th Quarter") AND (Fields!continents.Value = "Europe"), "Red",
            "Dummy Value"))))
=IIF((Fields!column.Value ="4th Quarter") AND (Fields!continents.Value ="Asia"),"Green",
     IIF((Fields!column.Value ="4th Quarter") AND (Fields!continents.Value = "N America"),"LIMEGREEN",
        IIF((Fields!column.Value ="4th Quarter") AND (Fields!continents.Value ="S America"),"Yellow",
            IIF((Fields!column.Value ="4th Quarter") AND (Fields!continents.Value = "Europe"), "Red",
            "Dummy Value"))))