0
A
回答
0
没有看到您的数据,我猜测您可能必须对每一天的Redemtpions进行汇总,然后将其加入到每个时间段。
这样,不知道你的数据什么的,这里有一个例子:
;with dayavg as
(
select day, count(*) as NumberRedemptionsDay
from dbo.Redepmtions
group by day
),
houravg as
(
select day, hour, count(*) as NumberRedeptionsHour
from dbo.Redemptions
group by day, hour
)
select
houravg.hour,
houravg.NumberRedeptionsHour,
(houravg.NumberRedeptionsHour/NumberRedemptionsDay)*100 as Perc
from houravg
inner join dayavg
on houravg.day=dayavg.day
+0
非常感谢 - 我认为可能有一种简单的方法可以在RS中执行此操作..但这非常棒。 – 2011-02-16 23:50:49
相关问题
- 1. Silverlight 4 - Reporting Services查看器
- 2. 查看Reporting Services报表中的IE浏览器在某些机器
- 3. Reporting Services报告
- 4. SQL Reporting Services报表参数
- 5. SQL Reporting Services报告版本比较
- 6. Sql Server Reporting Services:如何计算百分比差异?
- 7. 的Reporting Services - 数据放入使用Reporting Services子报表
- 8. 将多个参数从Custome WebPart传递到Reporting Services报表查看器webpart
- 9. 基于ASP.NET的报表设计器Reporting Services 2008报表创建
- 10. 如何在Firefox中为SQL Server Reporting Services报表查看器控件显示报表图标
- 11. 为什么Reporting Services报告比查询慢得多?
- 12. 了解SQL Reporting Services 2005报表中的分组
- 13. MS Reporting Services - 慢速报告
- 14. 添加where条件Reporting Services报表
- 15. 替换Reporting Services RDLC报表的DataSource
- 16. SQL Server Reporting Services - 报表维护工具
- 17. 报表中小计的百分比
- 18. Reporting Services 2005中不生成子报表的报表
- 19. 无需Reporting Services的Visual Studio中的报表服务器
- 20. Reporting Services 2008中的多个报告列
- 21. Reporting Services的表达
- 22. telerik报告图表百分比
- 23. 用于网页的SQL Reporting Services查看器 - 您可以移动查看报告按钮吗?
- 24. 报表查看器
- 25. Reporting Services 2008-报表服务器安装未初始化
- 26. SQL Server Reporting Services 2008报表生成器用户访问权限
- 27. Reporting Services“无法连接到报表服务器数据库”
- 28. SQL Server Reporting Services - 报表模型:API(构建自定义报表生成器)
- 29. 百分比容器中的百分比浮动容器
- 30. SQL Server 2008/Reporting Services查询
你能描述的一些细节你的数据集。根据结构的不同,您可能能够使用现有的数据集而不写任何新的SQL。 – 2011-02-10 23:05:15