SSRS如何在列表控件中对表进行排序?
我正在 SSRS 2008 中开发 RDL。我获取了 3 个子报告并将它们转换为一个报告。现在我有一个包含 3 个 tablice 的 RDL 文件。但自从我现在将所有 3 个子报表数据集合并为一个数据集以来,这是一个数据集。 (所以我只是将这 3 个表分别合并成一个)。
但现在我想按所有人共有的日期字段对所有 3 个表格进行排序。我知道我已经选择了所有 3 个表格都加入的日期字段。然后我将所有 3 个 tablices 包装在一个列表控件中,并将此列表控件设置为按此日期字段排序:“actual_date”。
但现在,当我查看报告输出时,它会按实际日期对所有 Tablix A 进行排序,然后按实际日期对所有 Tablix B 进行排序,然后按实际日期对 Tablix C 进行排序。
相反,如果 B 中的记录出现在 A 中的记录之前,那么我希望该 B 记录列在该 A 记录之前。我怎样才能实现这个目标?
I am developing an RDL in SSRS 2008. I took 3 subreports and converted them into one report. So now I have one RDL file with 3 tablices. But one dataset since I merged all 3 subreport datasets into one now. (So I just joined each of these 3 tables into one).
But now I want to sort all 3 of these tablices by date field common to all. I know I have selected a date field that all 3 tablices join on. Then I wrapped all 3 tablices in a List Control and set this List Control to Sort by this date field: "actual_date".
But now when I view report output, it instead sorts all of Tablix A by actual_date, followed by all of Tablix B by actual_date, then followed by Tablix C by actual_date.
Instead, if a record in B occurs prior to a record in A, then I want that one B record to be listed before this one A record. How can I achieve this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您需要将 tablixes 合并为一个。 SSRS 不会拆分 Tablix 并将其与另一个 Tablix 交错。
因此,创建一个可以包含所有三种类型数据的 tablix。您可以在单元格中使用表达式来更改单元格显示的字段。然后在适当的级别设置排序(详细信息组或父组。)
You need to combine the tablixes into one. SSRS won't split up a tablix and interleave it with another one.
So make a tablix that can contain all three types of data. You can use expressions in the cells to change what field the cell displays. Then set the sorting at the appropriate level (details group or a parent group.)