如何在SSRS中创建热图?

时间:2016-06-23 18:48:14

标签: sql reporting-services ssrs-2012

enter image description here

如何在SSRS中创建这样的内容?根据行中的值(Underwriter),颜色将从红色变为绿色。而这一切都在小组中:

enter image description here

1 个答案:

答案 0 :(得分:2)

您可以通过右键单击单个单元格并根据表达式设置填充颜色来执行此操作:

在下面的图片中,我错误地将" =="它应该在哪里" =" enter image description here

举例说明以下内容:

enter image description here

分别使用以下表达式为ID30,ID60和ID90字段创建:

ID30:

=IIF(Fields!ID30.Value>="0" And Fields!ID30.Value<="100" ,"#c6c626",IIF(Fields!ID30.Value>="100" And Fields!ID30.Value<="200" ,"#c6c627",IIF(Fields!ID30.Value>="200","#9e2424","red")))

ID60:

=IIF(Fields!ID60.Value>="0" And Fields!ID60.Value<="100" ,"#c6c626",IIF(Fields!ID60.Value>="100" And Fields!ID60.Value<="200" ,"#c6c627",IIF(Fields!ID60.Value>="200","#9e2424","red")))

ID90:

=IIF(Fields!ID90.Value>="0" And Fields!ID90.Value<="100" ,"#c6c626",IIF(Fields!ID90.Value>="100" And Fields!ID90.Value<="200" ,"#c6c627",IIF(Fields!ID90.Value>="200","#9e2424","red")))