Hi Nick,
According to your description, you want to add a standard line in chart so that the chart could display if the data achieve the target or not. Right?
In SQL Server Reporting Service, we could achieve this goal by using a calculated field as target in dataset and use it in chart for split line. We have tested this scenario on our environment. Please refer to steps below:
- Right-click the dataset in the Report Data window, and then select Add Calculated Fields.
- Click Add button to add a calculated field(Named SplitLine). Specify a value as target in the expression like:=CInt(20000).
- Create a chart and add the SplitLine field to Y-Axis in your chart.
- Right-click the SplitLine field and change the chart type for this series to a Line chart. You could set some properties in the Property window.
- You could also change the columns colors based on achieving the target or not. Right-click on any column, go to Fill tab in Series Properties, and use the following expression:
=IIF(Fields!SalesAmount.Value>20000,"LimeGreen","Brown").
The result is like below:
Reference:
highlight a bar depending on threshold
If you have any more questions, please feel free to ask.
Regards,
Shrek Li
-
Edited by
Simon_HouMicrosoft contingent staff, Moderator
Monday, April 27, 2015 7:47 AM
add link
-
Marked as answer by
Nick Willi
12 hours 26 minutes ago