Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/arduino/2.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_Ssrs 2008_Ssrs 2008 R2_Ssrs Tablix_Ssrs Grouping - Fatal编程技术网

Reporting services 基于SSRS中两个参数的列可见性

Reporting services 基于SSRS中两个参数的列可见性,reporting-services,ssrs-2008,ssrs-2008-r2,ssrs-tablix,ssrs-grouping,Reporting Services,Ssrs 2008,Ssrs 2008 R2,Ssrs Tablix,Ssrs Grouping,我有一个参数'Section'具有值a、B、C,另一个参数'Field'具有值X、Y、Z。现在我的要求是我需要基于这两个参数使列可见,如果我的参数'Section'是a,参数'Field'是X,则列应该以其他方式隐藏。这两个参数都是多值参数。我写了下面的表达式,它不允许我运行 =IIF(InStr(JOIN(Parameters!Sections.Label,", "),"A"),InStr(JOIN(Parameters!Fields.Label,", "),"X", False,True),

我有一个参数'Section'具有值a、B、C,另一个参数'Field'具有值X、Y、Z。现在我的要求是我需要基于这两个参数使列可见,如果我的参数'Section'是a,参数'Field'是X,则列应该以其他方式隐藏。这两个参数都是多值参数。我写了下面的表达式,它不允许我运行

=IIF(InStr(JOIN(Parameters!Sections.Label,", "),"A"),InStr(JOIN(Parameters!Fields.Label,", "),"X", False,True),True)
运行报告时出现的错误是“输入字符串的格式不正确”。 有人能帮我更正格式吗?

试试这个:

=IIF(InStr(JOIN(Parameters!Sections.Label,", "),"A") And InStr(JOIN(Parameters!Fields.Label,", "),"X"), True,False)

当我在“Field”参数中选择all时,它不起作用,该参数包括X、Y、ZIs“all”“在可用值中有一个单独的选项,还是说当您选中X、Y和Z时?如果是后者,那么除非您没有正确实现,否则它应该可以工作。如果您选择了多个选择,会发生什么?列值应根据行值选择(如第一行有“A”和“X”),然后值为空,第二个角色有“B”和“Y”,然后值是否存在?)