简体   繁体   English

SSRS隐藏表达式字段值为空白的行

[英]SSRS hide a row where a expression field value is blank

I have a field in my SSRS report that derives a value based on an expression. 我的SSRS报告中有一个字段,该字段基于表达式得出值。 The expressions is a simple Lookup between 2 datasets and is working fine. 表达式是在2个数据集之间的简单查找,并且运行良好。 It does return some NULL values and what I would like to do is not display the rows where the expression produces a NULL value. 它的确返回了一些NULL值,而我想做的是不显示表达式产生NULL值的行。 I know how to do this on a field that is not based on an expression but not on a field that is. 我知道如何在不基于表达式但不基于表达式的字段上执行此操作。 Anyone know how this can be done? 有人知道该怎么做吗? Thanks 谢谢

Chances are, it will be something like the expression below on the Hidden property of whatever it is you are trying to hide/show. 很有可能,它就像下面您要隐藏/显示的内容的“隐藏”属性上的表达式一样。

=IIf(IsNothing(<your Lookup expression>), True, False)

Add any other checking in there too, if need be. 如果需要,也可以在其中添加任何其他检查。

UPDATE: 更新:

To make this work on the entire row. 为了使这项工作适用于整行。 Right-click on a row header in design mode, and choose Row Visibility... Click Show or hide based on an expression . 在设计模式下右键单击行标题,然后选择“行可见性...”。单击“ 显示或基于表达式隐藏” Add the expression you now have in there. 添加您现在在那里的表达式。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM