Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/reporting-services/3.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

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/angularjs/21.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 - Fatal编程技术网

Reporting services SSRS-如果报告分组的字段为空,您可以改为在其他列上分组吗?

Reporting services SSRS-如果报告分组的字段为空,您可以改为在其他列上分组吗?,reporting-services,Reporting Services,在SSRS中,我有一个按员工ID分组的报告,然后是一个名为Code1的字段上的子组。此子组末尾有小计。CODE1有时可以是空的或空的,在这些情况下,用户希望将报告分组在不同于CODE2的字段上,而不是分组所有空白CODE1字段。这可能吗?在sql中使用isnull函数添加一列-从中选择isnullcode1、code2作为GroupCode。。。然后将GroupCode用作报告中的子组字段 或者,您也可以在报告中为组-=IIFIsNothingFields创建表达式!代码1.值,字段!代码2.值

在SSRS中,我有一个按员工ID分组的报告,然后是一个名为Code1的字段上的子组。此子组末尾有小计。CODE1有时可以是空的或空的,在这些情况下,用户希望将报告分组在不同于CODE2的字段上,而不是分组所有空白CODE1字段。这可能吗?

在sql中使用isnull函数添加一列-从中选择isnullcode1、code2作为GroupCode。。。然后将GroupCode用作报告中的子组字段

或者,您也可以在报告中为组-=IIFIsNothingFields创建表达式!代码1.值,字段!代码2.值,字段!代码1.价值

或者对code1进行相同的值测试,如果没有,则使用code2