我将如何设计此 Reporting Services 报告
我刚刚被要求编写一个 SSRS 报告,显示如下数据:
Date 1 | Date 2 |
O | C | A | O | C | A |
1 | 2 | 5 | 4 | 3 | 6 |
日期 1 / 2 等将在所选日期范围内的每一天继续,这很可能是当前月份,我可以在存储的范围内返回此数据程序,所以这确实不是什么大问题。
O / C / A 是每天的子标题,我的主要问题是如何将 OCA 作为每个标题中的子标题(如上所示),以及我应该如何从存储过程返回此数据。
我的想法是返回如下数据:
日期|哦| C | A
但是 SSRS 可以将这些数据重新排列成我需要的格式吗?
我认为我需要使用矩阵控制,因为我有可变数量的列,但除此之外,我不太确定需要如何解决这个问题。
任何建议都会很好
谢谢
I've just been asked to write an SSRS report that displays data like so:
Date 1 | Date 2 |
O | C | A | O | C | A |
1 | 2 | 5 | 4 | 3 | 6 |
Date 1 / 2 etc will continue for each day in a selcted date range, this will most likely be the current month, I can return this data within the stored procedure so this really shouldnt be much of an issue.
O / C / A are sub headers within each day, my main problem here is how to get O C A as sub headers within each header as shown above, and also how should I return this data from my stored procedure.
My thoughts were to return the data looking like:
Date | O | C | A
But can SSRS rearange this data into the format I need?
I assume I will need to use the matrix control as I have a variable number of columns but other than this I'm not really sure how I need to approach this problem.
Any advice would be great
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
形式获取数据
以Date1 | 哦| 1
日期1 | C | 2
日期1 |一个 | 5
日期2 |哦| 4
日期2 | C | 5
日期2 |一个 | 6
来自 SQL 服务器。然后按照此问题中的说明构建矩阵:
SQL Server Reporting Services 2008 中的列和行分组
Get your data in the form
Date1 | O | 1
Date1 | C | 2
Date1 | A | 5
Date2 | O | 4
Date2 | C | 5
Date2 | A | 6
from SQL-Server. Then follow the instructions from this question to build your matrix:
Column and Row grouping in SQL Server Reporting Services 2008