【发布时间】:2014-10-17 10:09:44
【问题描述】:
我是 SSRS/RDLC 报告的新手,我必须创建一个报告。我有两个数据集,在这两个数据集中我有一个 year 字段,我必须按 year 对其进行分组。第一个数据集 1 应该基于年份,然后数据集 2 应该基于年份。
提前致谢
【问题讨论】:
标签: reporting-services rdlc ssrs-2008-r2 ssrs-tablix ssrs-grouping
我是 SSRS/RDLC 报告的新手,我必须创建一个报告。我有两个数据集,在这两个数据集中我有一个 year 字段,我必须按 year 对其进行分组。第一个数据集 1 应该基于年份,然后数据集 2 应该基于年份。
提前致谢
【问题讨论】:
标签: reporting-services rdlc ssrs-2008-r2 ssrs-tablix ssrs-grouping
看来你有两个选择:
A)使用Lookup 函数将您的两个数据集链接在一起。
B)使用子报表(更简单):
创建一个三行 tablix。
Row 1: Column Headers
Row 2: DataSet 1 Data
Row 3: A Subreport.
为您的第二个数据集创建第二个报告。然后,您可以按照以下步骤将其添加到报告中。
1.Go to insert > Subreport and click on the third row. This will insert the subreport into the tablix.
2.Highlight all the cells in row 3 and press merge.
3.Right click the Sub Report > Properties.
4.In the text box entitle 'Use this report as the subreport' enter the URL from the second report.
【讨论】: