SSRS 2008 R2 - 将总计线添加到图表中
我创建了一个折线图,显示一个月内发送的不同类型的消息(电子邮件、打印、语音),这些消息在图表上显示得很好。
是否有一种简单的方法来添加另一行来总计值3系列不改变SQL?
I have created a line chart that displays the different types of messages sent over a month (Email, Print, Voice) which are displaying on the chart just fine.
Is there an easy way to add another line which totals the values for the 3 series without changing the SQL?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在报告服务中有两种方法可以做到这一点:
1。直接在图表中
将新系列添加到折线图中。将值的表达式设置为
=Fields!Email.Value + Fields!Print.Value + Fields!Voice.Value
2。使用数据集中的计算字段
将计算字段“AllMessages”设置为电子邮件、打印和语音的总和。然后将 AllMessages 添加到您的图表中。 YouTube 演练计算字段
There are two way to do this in reporting services:
1. Directly in the chart
Add a new series to your line chart. Set the expression for the value to be
=Fields!Email.Value + Fields!Print.Value + Fields!Voice.Value
2. With a calculated field in the dataset
Set the calculated field "AllMessages" to be the sum of Email, Print and Voice. Then add AllMessages to your chart. Youtube Walkthrough calculated field