简体   繁体   English

SSRS:折线图超过堆积的条形图

[英]SSRS: Line chart over stacked bar chart

I'm trying to create a stacked bar chart with multiple data lines above it. 我正在尝试创建一个堆积的条形图,上面有多条数据线。

Current Chart: 当前图表:

当前图表

My data looks like this: 我的数据如下所示:

数据集

My report is set up to take 2 parameters: LOB (multi) and Metric (singular). 我的报告设置有两个参数:LOB(多)和Metric(单数)。

Chart Data Set Up: 图表数据设置:

图表数据设置

In the chart under January, I should have 3 lines with data points 38.35, 55.09, and 26.68. 在1月下的图表中,我应该有3条线,数据点分别为38.35、55.09和26.68。 Instead, what I'm getting is a summation of the 3 numbers. 相反,我得到的是3个数字的总和。

I'm pretty new to SSRS, so I haven't been able to figure out how to get my 3 lines above the bar chart. 我是SSRS的新手,所以我一直无法弄清楚如何使我的3条线高于柱状图。 Any help is appreciated. 任何帮助表示赞赏。

Mock up:I would like for the lines to look like this, but the bars would still sum up like the chart above. 模拟:我希望线条看起来像这样,但条形图仍会像上图一样进行汇总。 Seems like I would need to make the Bars ignore the Series grouping somehow. 似乎我需要使Bars以某种方式忽略Series分组。

MockUp 小样

单击度量标准速率旁边的下拉箭头,然后从Metric_Rate字段中删除总和。

You said you were expecting three values under January, one for each LOB but you have not included LOB in and category groups so the chart assumes you want to aggregate everything down to the month level. 您说过您希望在一月份下有三个值,每个LOB一个值,但是您没有在LOB和Category组中包括LOB,因此该图表假定您要汇总所有月份级别的数据。 If you add LOB to your category group you should see the data you need. 如果将LOB添加到类别组,则应该看到所需的数据。

I took a subset of your data (just Jan - Mar) and just added a very simple chart. 我获取了部分数据(仅1月-3月),并添加了一个非常简单的图表。 I moved the line onto the secondary Axis for clarity and simply added the LOB to the category group. 为了清楚起见,我将该行移动到辅助Axis上,只是将LOB添加到类别组中。

Here's the design. 这是设计。 在此处输入图片说明

And the final output. 并最终输出。

在此处输入图片说明

I've not added the data labels but all points are shown. 我没有添加数据标签,但显示了所有点。

If this is not what you intended then please sketch up what you expect the final chart to look like based on your sample data. 如果这不是您想要的,请根据示例数据草绘最终图表的外观。

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

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