Reporting services SSRS IIF和开关功能
我有一个报告,其中我想根据列值更改列(sales)的背景色。下面是大陆列的值。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栏(背景色)下尝试了以下表达式 预览报告时,我只能看到所有行的绿色。我知道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"))))