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 如何在SSRS分组中获得特定的单元值?_Reporting Services_Reportbuilder3.0 - Fatal编程技术网

Reporting services 如何在SSRS分组中获得特定的单元值?

Reporting services 如何在SSRS分组中获得特定的单元值?,reporting-services,reportbuilder3.0,Reporting Services,Reportbuilder3.0,我正在使用SQLServer报表生成器生成SSRS报表。我将列和行分组如下: 我想选择下面红色框中突出显示的行。如何访问该特定单元格并在报表中的其他表格中显示其值?正如您所看到的,我想要访问的值是一个列分组总数 由于所需单元格没有特定的设计时名称,因此无法直接引用它。您必须重新计算第二个表中的值。您必须确定标准,但假设它始终是最后一个会计年度,并且特定=固定百分比。。。然后 你应该可以用(未经测试的) 使用自定义代码: Function SumLookup(ByVal items As O

我正在使用SQLServer报表生成器生成SSRS报表。我将列和行分组如下:

我想选择下面红色框中突出显示的行。如何访问该特定单元格并在报表中的其他表格中显示其值?正如您所看到的,我想要访问的值是一个列分组总数


由于所需单元格没有特定的设计时名称,因此无法直接引用它。您必须重新计算第二个表中的值。您必须确定标准,但假设它始终是最后一个会计年度,并且特定=固定百分比。。。然后

你应该可以用(未经测试的)

使用自定义代码:

Function SumLookup(ByVal items As Object()) As Decimal 
If items Is Nothing Then 
Return Nothing
End If 
Dim suma As Decimal = New Decimal() 
Dim ct as Integer = New Integer() 
suma = 0 
For Each item As Object In items 
suma += Convert.ToDecimal(item) 
Next 
return suma 
End Function 
然后在要引用值的单元格中:

=Code.Sumlookup(lookupset("2073/074",Fields!FiscalYear.Value,Fields!Value.Value,"DataSet"))
*
lookup("2073/074",Fields!FiscalYear.Value,Fields!Alfa.Value,"DataSet"))

根据第二张OP截图,我不认为固定百分比的总收入是“特定”组的一部分。另一张表是否从同一个数据集获取其“数据”?
=Code.Sumlookup(lookupset("2073/074",Fields!FiscalYear.Value,Fields!Value.Value,"DataSet"))
*
lookup("2073/074",Fields!FiscalYear.Value,Fields!Alfa.Value,"DataSet"))