如何对 Reporting Services 矩阵的列进行分组?

发布于 2024-09-03 06:29:28 字数 2408 浏览 1 评论 0原文

我想在报告服务矩阵中显示数据。它是一个访问峰值矩阵,以天为行,小时为列。我的程序返回如下数据:

Day / Hour / Peak
2010-05-01 00:00:00.000 2010-05-01 00:00:00 0
2010-05-01 00:00:00.000 2010-05-01 01:00:00 0
2010-05-01 00:00:00.000 2010-05-01 02:00:00 0
2010-05-01 00:00:00.000 2010-05-01 03:00:00 0
2010-05-01 00:00:00.000 2010-05-01 04:00:00 0
2010-05-01 00:00:00.000 2010-05-01 05:00:00 0
2010-05-01 00:00:00.000 2010-05-01 06:00:00 0
2010-05-01 00:00:00.000 2010-05-01 07:00:00 0
2010-05-01 00:00:00.000 2010-05-01 08:00:00 0
2010-05-01 00:00:00.000 2010-05-01 09:00:00 0
2010-05-01 00:00:00.000 2010-05-01 10:00:00 0
2010-05-01 00:00:00.000 2010-05-01 11:00:00 0
2010-05-01 00:00:00.000 2010-05-01 12:00:00 0
2010-05-01 00:00:00.000 2010-05-01 13:00:00 0
2010-05-01 00:00:00.000 2010-05-01 14:00:00 0
2010-05-01 00:00:00.000 2010-05-01 15:00:00 0
2010-05-01 00:00:00.000 2010-05-01 16:00:00 0
2010-05-01 00:00:00.000 2010-05-01 17:00:00 0
2010-05-01 00:00:00.000 2010-05-01 18:00:00 0
2010-05-01 00:00:00.000 2010-05-01 19:00:00 0
2010-05-01 00:00:00.000 2010-05-01 20:00:00 0
2010-05-01 00:00:00.000 2010-05-01 21:00:00 0
2010-05-01 00:00:00.000 2010-05-01 22:00:00 0
2010-05-01 00:00:00.000 2010-05-01 23:00:00 0
2010-05-02 00:00:00.000 2010-05-02 00:00:00 0
2010-05-02 00:00:00.000 2010-05-02 01:00:00 0
2010-05-02 00:00:00.000 2010-05-02 02:00:00 0
2010-05-02 00:00:00.000 2010-05-02 03:00:00 0
2010-05-02 00:00:00.000 2010-05-02 04:00:00 0
2010-05-02 00:00:00.000 2010-05-02 05:00:00 0
2010-05-02 00:00:00.000 2010-05-02 06:00:00 0
2010-05-02 00:00:00.000 2010-05-02 07:00:00 0
2010-05-02 00:00:00.000 2010-05-02 08:00:00 0
2010-05-02 00:00:00.000 2010-05-02 09:00:00 0
2010-05-02 00:00:00.000 2010-05-02 10:00:00 0
2010-05-02 00:00:00.000 2010-05-02 11:00:00 0
2010-05-02 00:00:00.000 2010-05-02 12:00:00 0
2010-05-02 00:00:00.000 2010-05-02 13:00:00 0
2010-05-02 00:00:00.000 2010-05-02 14:00:00 0
2010-05-02 00:00:00.000 2010-05-02 15:00:00 0
2010-05-02 00:00:00.000 2010-05-02 16:00:00 0
2010-05-02 00:00:00.000 2010-05-02 17:00:00 0
2010-05-02 00:00:00.000 2010-05-02 18:00:00 0
2010-05-02 00:00:00.000 2010-05-02 19:00:00 0
2010-05-02 00:00:00.000 2010-05-02 20:00:00 0
2010-05-02 00:00:00.000 2010-05-02 21:00:00 0
2010-05-02 00:00:00.000 2010-05-02 22:00:00 0
2010-05-02 00:00:00.000 2010-05-02 23:00:00 0
...

报告服务中的行字段是日期,列是小时,详细信息是峰值。但是当我渲染结果时,它会重复每行的小时列。

给定此数据集,如何对所有凌晨 1 点、所有凌晨 2 点等进行分组?

I want to display data in a reporting services matrix. It is an access peak matrix, in a way that days are rows, and hours are columns. My procedure returns data like this:

Day / Hour / Peak
2010-05-01 00:00:00.000 2010-05-01 00:00:00 0
2010-05-01 00:00:00.000 2010-05-01 01:00:00 0
2010-05-01 00:00:00.000 2010-05-01 02:00:00 0
2010-05-01 00:00:00.000 2010-05-01 03:00:00 0
2010-05-01 00:00:00.000 2010-05-01 04:00:00 0
2010-05-01 00:00:00.000 2010-05-01 05:00:00 0
2010-05-01 00:00:00.000 2010-05-01 06:00:00 0
2010-05-01 00:00:00.000 2010-05-01 07:00:00 0
2010-05-01 00:00:00.000 2010-05-01 08:00:00 0
2010-05-01 00:00:00.000 2010-05-01 09:00:00 0
2010-05-01 00:00:00.000 2010-05-01 10:00:00 0
2010-05-01 00:00:00.000 2010-05-01 11:00:00 0
2010-05-01 00:00:00.000 2010-05-01 12:00:00 0
2010-05-01 00:00:00.000 2010-05-01 13:00:00 0
2010-05-01 00:00:00.000 2010-05-01 14:00:00 0
2010-05-01 00:00:00.000 2010-05-01 15:00:00 0
2010-05-01 00:00:00.000 2010-05-01 16:00:00 0
2010-05-01 00:00:00.000 2010-05-01 17:00:00 0
2010-05-01 00:00:00.000 2010-05-01 18:00:00 0
2010-05-01 00:00:00.000 2010-05-01 19:00:00 0
2010-05-01 00:00:00.000 2010-05-01 20:00:00 0
2010-05-01 00:00:00.000 2010-05-01 21:00:00 0
2010-05-01 00:00:00.000 2010-05-01 22:00:00 0
2010-05-01 00:00:00.000 2010-05-01 23:00:00 0
2010-05-02 00:00:00.000 2010-05-02 00:00:00 0
2010-05-02 00:00:00.000 2010-05-02 01:00:00 0
2010-05-02 00:00:00.000 2010-05-02 02:00:00 0
2010-05-02 00:00:00.000 2010-05-02 03:00:00 0
2010-05-02 00:00:00.000 2010-05-02 04:00:00 0
2010-05-02 00:00:00.000 2010-05-02 05:00:00 0
2010-05-02 00:00:00.000 2010-05-02 06:00:00 0
2010-05-02 00:00:00.000 2010-05-02 07:00:00 0
2010-05-02 00:00:00.000 2010-05-02 08:00:00 0
2010-05-02 00:00:00.000 2010-05-02 09:00:00 0
2010-05-02 00:00:00.000 2010-05-02 10:00:00 0
2010-05-02 00:00:00.000 2010-05-02 11:00:00 0
2010-05-02 00:00:00.000 2010-05-02 12:00:00 0
2010-05-02 00:00:00.000 2010-05-02 13:00:00 0
2010-05-02 00:00:00.000 2010-05-02 14:00:00 0
2010-05-02 00:00:00.000 2010-05-02 15:00:00 0
2010-05-02 00:00:00.000 2010-05-02 16:00:00 0
2010-05-02 00:00:00.000 2010-05-02 17:00:00 0
2010-05-02 00:00:00.000 2010-05-02 18:00:00 0
2010-05-02 00:00:00.000 2010-05-02 19:00:00 0
2010-05-02 00:00:00.000 2010-05-02 20:00:00 0
2010-05-02 00:00:00.000 2010-05-02 21:00:00 0
2010-05-02 00:00:00.000 2010-05-02 22:00:00 0
2010-05-02 00:00:00.000 2010-05-02 23:00:00 0
...

My row field in reporting services is the day, column is hour, detail is peak. But when I render the result, it repeats the hour columns for each row.

How to group all 1AM, all 2AM, and so on, given this dataset?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

一页 2024-09-10 06:29:28

程序结果的问题是时间是凌晨 1 点、凌晨 2 点等,但每个日期的日期部分都不同。

我只是忽略了日期部分,一切都很好并组合在一起。

The problem with the procedure result was that time was 1AM, 2AM, etc, but the date part is different for each date.

I just ignored the date part and everything is fine and grouped together.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文