SSRS - 父行下是否可以有详细信息行
我有一份报告,当前列出了父级的数据及其同一行的详细信息。假设父组的列占据前三列,详细信息占据接下来的三列。目前,前三列跨越组合详细信息行的高度。因此,如果有三个详细信息行,则前三列是跨越这三列高度的一行。这就是我最初想要的。
现在我想做的是列出父组的第一行,然后在该列表下列出详细信息,然后列出父组的下一行及其详细信息,依此类推。
一个例子,以防万一我不清楚
CategoryId 和 Category Name 是父列
ProductId ProductName 和 Price 是详细信息,这些通过 CategoryId 链接到类别
我想显示第一个类别行,然后在每个产品下显示在此类别中,然后是下一个类别行,其下是产品,然后是下一个类别等。
这可能吗?
谢谢, 尼尔
I have a report that currently lists data of a parent and its the details on the same row. So lets say the columns of the parent group take up the first three columns and the details the next three. Currently the first three columns span the height of the combined details rows. So if there are three detail rows the first three columns are one row that spans the height of these three columns. This is how I initially wanted it.
Now what I would like to do is list the first row of the parent group, then under that list the details, then the next row of the parent group and under that its details and so on.
An example just in case i'm not clear
CategoryId and Category Name are the parent columns
ProductId ProductName and Price are the details, and these are linked to the category by a categoryId
I want to display the first category row, then under that each product in this category, then the next category row and under it the products, then the next category etc.
Is this possible?
Thanks,
Neil
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
您正在寻找的内容称为阶梯报告。以下是关于如何在 SSRS 2008 中创建一个很好的指南:如何:创建阶梯式报告。
来自网页:
What you are looking for is called a stepped report. Here is a good guide on how to create one in SSRS 2008: How to: Create a Stepped Report.
From the webpage:
我相信您正在要求:
您可以尝试将矩阵/表格放入按类别“希望”分组的列表中,
这是有意义的。我主要使用 SSRS2005,它有很多这样的缺点(我将表格放在列表中,将标题表格放在表格单元格等中)。 SSRS2008 可能有另一种解决方案。
I believe you are asking for:
You could try placing the matrix/table in a list which is grouped by category
Hope that makes sense. I predominately use SSRS2005 where there are many shortcomings like this (I put tables in lists and header tables in table cells etc etc). SSRS2008 could have another solution.
我选择使用子报告的解决方案。因此,我在第一行上显示前三列,然后在下一个(重复)行上我有一个子报告,它采用categoryId并根据传递给它的ID显示产品。按照我想要的方式工作
I opted for a solution using sub-reports. So I display the first three columns on the first row, then on the next (repeating) row I have a sub report which takes the categoryId and displays the products based on the ID passed into it. Works as I want it to