简体   繁体   English

在SSRS 2012中将2nd X轴数据添加到折线图中

[英]Adding 2nd X Axis Data to Line Graphs in SSRS 2012

I'm using SSRS 2012. 我正在使用SSRS 2012。

I'm have a simple dataset that contains only 3 fields: Date, Name, Quantity (not the exact names, but the essential descriptions). 我有一个仅包含3个字段的简单数据集:日期,名称,数量(不是确切的名称,而是基本描述)。

I want to make a simple line graph, showing the Quantity for each Name over Date. 我想制作一个简单的折线图,显示每个名称超过日期的数量。

So far, no problem, Name goes in the series group, Date goes in the category group and Quantity goes into Values. 到目前为止,没问题,名称进入系列组,日期进入类别组,数量进入值。

Here's the issue. 这是问题。 I need to add the overall sum Total of Quantity as a graphed line of data, but since the Total is currently averaging between 300 - 350 per day, while no single Name will have more the 75 per day, I need to graph the Total against a 2nd, differently stepped X axis. 我需要将总数量的总和添加为图形数据线,但是由于当前的总和目前平均每天在300-350之间,而没有一个单独的名称每天会有更多的75,因此我需要根据第二个台阶X轴。

From what I've read, SSRS can't automatically create a Total line from the underlying data, so I altered the source query to create an 'All' entry in Name to supply the Total within the data. 根据我的阅读,SSRS无法自动从基础数据创建汇总行,因此我更改了源查询,以在名称中创建“全部”条目以在数据中提供汇总。

However, I can't seem to get what I need to display in the graph to work. 但是,我似乎无法获得需要在图表中显示的内容才能正常工作。 I've tried adding Name again as a Series group and adding another Quantity in the Values section and neither has worked properly 我尝试将“名称”再次添加为“系列”组,并在“值”部分中添加了另一个“数量”,但都无法正常工作

How do I add a Total line on the second X axis with different stepping? 如何在第二个X轴上以不同的步进添加总计线?

What you're looking for is a called a secondary axis. 您正在寻找的是所谓的辅助轴。 Its actually quite easy. 它实际上很容易。

http://technet.microsoft.com/en-us/library/dd207018(v=sql.105).aspx http://technet.microsoft.com/zh-CN/library/dd207018(v=sql.105).aspx

Also, don't forget you can have many datasets so you can always just create another one instead of modifying your first to try an accommodate both the primary and secondary axis data in one dataset. 另外,别忘了您可以拥有许多数据集,因此您始终可以只创建另一个数据集,而不必修改第一个数据集以尝试在一个数据集中容纳主轴和辅助轴数据。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM