0

我是SSRS/RDLC報告的新手,我必須創建報告。我有兩組數據,在兩組中我有一個年份字段,我必須按年份對它進行分組。第一個數據集1應該在數據集2應該按照年份出現之後的一年內出現。在RDLC/SSRS報告中分組

在此先感謝

回答

2

看來,你有兩個選擇:

A)使用Lookup功能到你的兩個數據集鏈接在一起。

B)使用報表(容易):

創建三排表矩陣。

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. 
+0

當我嘗試從數據集2我得到一個消息,就像從當前數據集「數據集」僅數據添加內容allowd – 2014-10-17 10:40:53

+0

編輯!對於那個很抱歉。 – KidCode 2014-10-17 10:53:59

+0

沒有問題......非常感謝您的時間。我會嘗試並讓你知道 – 2014-10-17 11:01:16