目前我有两张桌子。我有一个显示贷款摘要的表格。
Loan Client Balance
11 Bob 100000
20 Steven 100000
33 Michael 100000
我需要通过添加Loan.Notes
来增强此表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
Notes部分有两列,Note of note和Note.Subject。请问如何将注释部分添加到Tablix?
答案 0 :(得分:1)
首先,您需要使用'LoanNotes'创建加入Loan
的查询。
在Loan
的主表格组中。在该群组的标题中显示Loan #, client and balance
。
在详细信息部分,根据您的要求合并列并显示Notes
数据。在下面的例子中,我合并了三列并创建了一个表达式=Fields!NoteDate.Value & " - " & Fields!Subject.Value
现在,当您运行报告时,您将获得所需的数据。
可选:如果没有备注,您需要在可见性标签中编写表达式以隐藏您的明细行
=IIF(CountRows("LoanGroup") = 1, True, False)
OR
=CountRows("LoanGroup") = 1
答案 1 :(得分:0)
最好的方法是将表组合成一个连接在类似键上的数据表。
您可以使用查询来创建新视图,从而加入dbms中的表。或者你可以使用这个DataSet JOIN Helper
然后,您可以根据需要在Tablix中进行分组。
另一种解决方案是在同一报告中添加多个DataSet Using multiple datasets in RDLC