Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/ruby/22.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条件格式_Reporting Services_Formatting_Conditional - Fatal编程技术网

Reporting services 空值的SSRS条件格式

Reporting services 空值的SSRS条件格式,reporting-services,formatting,conditional,Reporting Services,Formatting,Conditional,我正在尝试为包含从0到100%的百分比的表创建条件格式。我已经成功地创建了条件格式,将所有百分比

我正在尝试为包含从0到100%的百分比的表创建条件格式。我已经成功地创建了条件格式,将所有百分比<50%的字体更改为红色背景的白色字体,将高于50%的字体更改为白色背景的黑色字体

这是我在后台使用的条件格式:

=IIF((Fields!Uptime.Value < 0.985) And (Fields!Uptime.Value >= 0.00), "Red", "Transparent")
=IIF((字段!Uptime.Value<0.985)和(字段!Uptime.Value>=0.00),“红色”,“透明”)
我的问题是,条件格式也在格式化“空白”行。因此,一个空白行将显示为红方块

相反,我试图实现的是:

  • 0-50之间的所有%都有红色背景
  • 此格式中不应包含任何空白行,因此其背景为白色
PS,我是这个网站的新手,所以如果我在事故中违反了任何规则,请原谅我


谢谢

您可以使用
IsNothing
功能检查空白值

=IIf(IsNothing(Fields!Uptime.Value), "White", IIf((Fields!Uptime.Value < 0.985) And (Fields!Uptime.Value >= 0.00), "Red", "Transparent"))
=IIf(无(字段!Uptime.Value)、“白色”、IIf((字段!Uptime.Value<0.985)和(字段!Uptime.Value>=0.00)、“红色”、“透明”))

非常感谢您!我甚至不知道有处理空值的函数!!这解决了我的问题。再次感谢!