gpt4 book ai didi

sql-server-2008 - 隐藏不包含值的行

转载 作者:行者123 更新时间:2023-12-05 01:09:22 25 4
gpt4 key购买 nike

我想在我的报告中隐藏在特定字段集中不包含任何值的行。

这个问题很有帮助

How to filter rows with null values in any of its columns in SSRS

我不明白如何检查多个字段是否为空。

目前,我正在这样做:

enter image description here

和下 知名度 :

enter image description here

我输入了这个表达式:

=iif(fields!Jan.Value
+fields!Feb.Value
+fields!Mar.Value
+fields!April.Value
+fields!May.Value
+fields!June.Value
+fields!July.Value
+Fields!Aug.Value
+Fields!Sept.Value
+Fields!Oct.Value
+Fields!Nov.Value
+Fields!Dec.Value="",TRUE,FALSE)

但我收到此错误:

enter image description here

如果值为空或空白,我如何隐藏一行?

最佳答案

您需要使用 AND(如果所有值都需要为 0 以隐藏该行),并尝试使用 LEN()

=iif(len(Fields!Jan.Value) = 0 AND len(Fields!Feb.Value) = 0 AND len(Fields!Mar.Value) = 0,True,False)

我还将使用通过突出显示行并使用“属性”窗口而不是通过右键单击菜单访问的 Visibility 属性。

关于sql-server-2008 - 隐藏不包含值的行,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15907891/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com