简体   繁体   English

SSRS - 如何获取第二行分组的详细信息

[英]SSRS - How to get details of grouping on second line

I have data where the data set (table A) can have comments attached (table B).我有数据集(表 A)可以附加注释(表 B)。 There can be a one to many relationship between table A and B. I have created an SSRS report which Groups by an employee (Parent CLient Partner) and then groups by nine additional fields.表 A 和 B 之间可以存在一对多关系。我创建了一个 SSRS 报告,该报告按员工(父客户合作伙伴)分组,然后按九个附加字段分组。 For each of these groups, if comments exist, I want to display the Comments under the 9 field grouping.对于这些组中的每一个,如果存在评论,我想在 9 字段分组下显示评论。 The two fields in the attached image that I would like undereath are DateAdded and Comments.我想在附件图像中的两个字段是 DateAdded 和 Comments。

Any guidance would be appreciated.任何指导将不胜感激。

SSRS does have a Lookup function that allows you to get values from a different dataset. SSRS 确实有一个Lookup function,它允许您从不同的数据集中获取值。 However, this is a suboptimal approach.然而,这是一种次优方法。 It is usually much more efficient to do the data preparation in the SQL and let the report handle the presentation of the data.在 SQL 中进行数据准备并让报告处理数据的呈现通常效率更高。

In other words, join the comments to the data in a single dataset.换句话说,将评论加入到单个数据集中的数据中。 It's OK for the other rows to be duplicated in the results because you can use the report grouping to control how the results are presented.可以在结果中复制其他行,因为您可以使用报表分组来控制结果的呈现方式。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM