如何计算sql报告2008中的百分比差异
我有一个场景,我将每周价格显示为一个列组,并且我想要一个列来显示每日百分比差异的平均值。我想知道 sql server reporting service 2008 R2 有没有办法,或者我是否必须在查询中手动创建。
I have a scenario where I'm showing weekly prices as a column group and I want a column where I will display the average of daily percentage difference. I want to know is there a way in sql server reporting service 2008 R2 or do I have to manually create in my query.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果我正确理解这个问题,您当前的查询仅返回以每周粒度级别聚合的结果。
不需要聚合 SQL 查询的可能解决方案:
假设“平均每日百分比差异”指的是一周内价格之间每日百分比变化的平均值,则最好的解决方案是编写聚合 SQL 查询。
If I understand this question correctly, your current query is only returning results aggregated at the weekly level of granularity.
Possible solution not requiring an aggregated SQL query:
Assuming "Average Daily Percent Difference" is referring to the average of the daily percent change between prices for a single week, the best solution is to write an aggregated SQL query instead.