簡體   English   中英

如何在Tablix中顯示兩組數據

[英]How to display two sets of data in a tablix

目前我有兩張桌子。 我有一個表顯示貸款摘要。

Loan    Client     Balance
 11       Bob       100000
 20       Steven    100000
 33       Michael   100000

我需要通過添加貸款來增強此表。

Loan    Client     Balance
 11       Bob       50000
 2015-05-06 - Bob came into the office and said we should expect late payments
 20       Steven    100000
 2015-05-06 - Steven came into the office and he will pay this friday
 2015-05-06 - Steven came into the office and said we should expect late payments
 33       Michael   700000

注釋部分有兩列,注釋日期和Note.Subject。 請問如何將“注釋”部分添加到tablix上?

首先,您需要創建將Loan與“ LoanNotes”結合起來的查詢。

在您的主表中按Loan分組。 在該組的標題中,顯示“ Loan #, client and balance

在此處輸入圖片說明

根據您的要求,在“詳細信息”部分中,合並列並顯示“ Notes數據”。 在以下情況下,我合並了三列並創建了=Fields!NoteDate.Value & " - " & Fields!Subject.Value的表達式

在此處輸入圖片說明

現在,當您運行報告時,您將根據需要獲取數據。

在此處輸入圖片說明

可選:如果沒有注釋,則需要在“可見性”選項卡中編寫一個表達式以隱藏明細行

=IIF(CountRows("LoanGroup") = 1, True, False) 

要么

=CountRows("LoanGroup") = 1

最好的方法是將表組合成一個連接到相似鍵上的數據表。

您可以通過使用查詢來創建新視圖,從而將表連接到dbms中。 或者您可以使用此DataSet JOIN Helper
然后,您可以根據需要將Tablix分組。

另一個解決方案是在同一報表中添加多個數據集。
在RDLC中使用多個數據集

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM