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
Reporting services 在SQL Server Reporting Services中,如何限制以前的函数';a组的范围是什么?_Reporting Services_Grouping_Aggregate Functions - Fatal编程技术网

Reporting services 在SQL Server Reporting Services中,如何限制以前的函数';a组的范围是什么?

Reporting services 在SQL Server Reporting Services中,如何限制以前的函数';a组的范围是什么?,reporting-services,grouping,aggregate-functions,Reporting Services,Grouping,Aggregate Functions,例如,我正在编写一份从数据库中获取5列数据的报告。 比如ProductionCountry、Industry、ProductGroup、ProductId、Price。 我将他们按生产国家、行业和产品组进行分组。 视觉上是这样的。 我已应用此表达式来隐藏组列数据的重复 =上一个(字段!IndustryName.Value)=字段!行业名称值 但问题是,这个表达式考虑了来自前一组的前一个值。 如果你能看到台湾图片中的两个红色框,我想分别在Industry和ProductGroup列中显示硬件和L

例如,我正在编写一份从数据库中获取5列数据的报告。
比如ProductionCountry、Industry、ProductGroup、ProductId、Price。
我将他们按生产国家、行业和产品组进行分组。
视觉上是这样的。

我已应用此表达式来隐藏组列数据的重复
=上一个(字段!IndustryName.Value)=字段!行业名称值

但问题是,这个表达式考虑了来自前一组的前一个值。 如果你能看到台湾图片中的两个红色框,我想分别在Industry和ProductGroup列中显示硬件和LCD面板。但是表情会隐藏它


任何人都知道如何修复它?

在向下查看值层次结构时,需要检查多个条件,因此需要三个可见性隐藏表达式:

对于ProductionCountry:

=Previous(Fields!ProductionCountry.Value) = Fields!ProductionCountry.Value
工业方面:

=Previous(Fields!ProductionCountry.Value) = Fields!ProductionCountry.Value AND Previous(Fields!IndustryName.Value) = Fields!IndustryName.Value
对于ProductGroup:

=Previous(Fields!ProductionCountry.Value) = Fields!ProductionCountry.Value AND Previous(Fields!IndustryName.Value) = Fields!IndustryName.Value AND Previous(Fields!ProductGroup.Value) = Fields!ProductGroup.Value

我能够呈现您在图像中看到的报告。我已为所有3列应用了可见性条件。但问题是,台湾的产业和产品群价值不会像中国以前的领域那样显现出来。我不想用这个短语来考虑中国集团的价值观。是的,这就是为什么你只需要检查这个国家是否不同,但是对于这个行业,你需要检查国家和行业,所以如果产业是相同的,但是国家改变了,这个产业就会被展示出来。与ProductGroup类似,您需要检查国家、行业和ProductGroup三者