简体   繁体   English

具有多个隐藏值的报表构建器中的可见性表达式

[英]visibility expression in report builder with multiple hidden values

I have an image that i would like to hide based on a value. 我有一张要根据值隐藏的图像。 This value can have 3 possible returns. 该值可以有3种可能的回报。 "AP02", "AP16", "" (blank). “ AP02”,“ AP16”,“”(空白)。 I want the image visible only if the value is "AP16" 我希望图像仅在值为“ AP16”时可见

Currently i am using this code: 目前,我正在使用此代码:

=First(Fields!LastMPClientName.Value, "ClientSummary")="AP02"

The above works if the value is "AP02" however i am seeing more and more blank values for my clients. 如果值是“ AP02”,则上述方法有效,但是我为客户看到的空白值越来越多。

How can i make this image hidden for both "AP02" and "" values? 如何为“ AP02”和“”值隐藏该图像?

I am using report builder 3.0 from a SQL 2008R2 instance. 我正在从SQL 2008R2实例使用报表生成器3.0。

不能使用OR?

=First(Fields!LastMPClientName.Value, "ClientSummary")="AP02" OR First(Fields!LastMPClientName.Value, "ClientSummary")="" 

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

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