简体   繁体   中英

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).

Chart Data Set Up:

图表数据设置

In the chart under January, I should have 3 lines with data points 38.35, 55.09, and 26.68. Instead, what I'm getting is a summation of the 3 numbers.

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. 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.

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. If you add LOB to your category group you should see the data you need.

I took a subset of your data (just Jan - Mar) and just added a very simple chart. I moved the line onto the secondary Axis for clarity and simply added the LOB to the category group.

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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