SSRS Chart. How to plot line to decrease totals by date - reporting-services

I have a chart in SSRS that has dollar totals by date. I would like a line chart that starts with the total dollars and then decreases the total by date until it gets to zero. How can I do that?

Create a Line Chart
In "Chart Data" add the following expression to the "Values" part (with the green plus sign): "=RunningValue(Fields!colVal.Value,Sum,"DataSet1")" where colVal is the field that you want to sum up, and "DataSet1" is the scope
Then right click on the horizontal axis -> Properties -> Side Margin Disabled + Scale Options = Reverse Direction
Hope this helps!

Related

ssrs chart axis labels duplicated

I am trying to get my chart to only show the month name. I have changed the horizontal axis options to do that but they are all duplicated. Can anyone tell me how I can get this set up to only show each month one time?
Here is the chart without any formatting:
It correctly shows the 4 data points.
I then go to the Horizontal Axis properties, change it to number and then select the MMM for the three character month name which correctly displays:
when I run the report after making that change I get an extra month (december) and all the month names are duplicated:
What do I need to do so that I only get Jan - Apr one time on my horizontal axis?
Thanks for any suggestions!
Leslie
edit: Here is the raw data:
I have tried changing the interval but have seen no effect on the output. I have tried unselecting the "Always include zero" option to get rid of december but that didn't work either.
edit 2: I said above there was no effect when I changed the axis interval to 1, actually that results in many entries for the Year-Month data in the axis area.
Right click on horizontal axis, select axis property, from the "Axis range and interval", for interval, type in "1" (without quotes), for interval type, select "Month", then hit OK. enter image description here

SSRS combination column and line chart - line width

I've got a chart in SSRS where I have both line and column values.
Is there any way the line can extend out to the extreme left and right of the corresponding column for the month?
The Green line is the target and the orange columns are the Utilisation figures for the months
I've tried Strip Lines but creating the IIF expressions to capture the filtering is too much pain and you can't get varying results by Month.
You could try to stick your line on the secondary X axis and then play with the settings of that axis. Once you get the settings like you want them you can hide the secondary X axis from the chart area.

SSRS colour expression for upward downward trend line chart

I need to make a line chart with the month on horizontal axis and a value on the vertical axis.
I need to colour the line's segments in green if the trend based on the previous month is growing, or in red if the trend is decreasing.
I can't find a way to compare the values grouped by month, and I prefer not to perform this by adding another query from db.
Right-click on the Chart Series (the line of the graph) and select Series Properties..., click Fill on the left then click the fx button to enter and expression for the fill. Let's say your field is called Sales. Use the following expression for the Fill:
=IIF(Fields!Sales.Value >= Previous(Fields!Sales.Value), "Green", "Red")
This worked on my simple test. You may need to aggregate within your query (group by month and sum) for this to work properly.

Third Axis in SSRS

I have a graph with the following axis:
This graph works fine, but I need one more addition to it.
My question is this:
I need to get a third line on there with the total amount of units for each month. I have a field that I can pull that has this total by month, but how do I go about putting it on my graph? When I try to add it, it wants to do it by manufacturer, which is not what I want. I just need a single line that has this total amount of units. Do I need to add it to the axis under manufacturer or up top next to the market percent axis?
It's a tad bit complicated, but this is what I would do:
Union the Total Units values to the Manufacturer % values and put it on a Secondary Axis. The data set would look something like this:
Chart Category = RecordDate
Chart Series = SeriesID (Group/Sort By) and SeriesLabel for the Label
Chart Value 1
Primary Axis
Expression: =iif(Fields!SeriesID <> 3,Fields!Value.Value,nothing)
Chart Value 2
Secondary Axis
Expression: =iif(Fields!SeriesID = 3,Fields!Value.Value,nothing)
Hide Legend for this Axis
Set the Line Color for each Chart Value to be conditioned on the SeriesID so the "Total Units" Marker Color in the Primary Axis Legend matches the Line Color on the Secondary Axis. Something like this: =switch(Fields!SeriesID.Value=1,"Red",Fields!SeriesID.Value=2,"Blue",Fields!SeriesID.Value=3,"Green")
Here is what we end up with:

Microsoft Reporting Server Chart x-axis question

I have a simple chart, and on the x-axis I have numbers ranging from 10000 to 10031.
The numbers are from a SQL call, and these values have values, which are plotted on the y-axis, just a simple chart.
The chart is only showing six of the numbers between 10000 and 10031, and having the user figure out the other numbers, I suppose to avoid clutter.
I would like all of the x-axis number to show up, and to fit it will need to be rotated 90 degrees.
I cannot find a setting to make all of the numbers show up.
In "Axis Properties", select "Axis Options" and put in "1" for the expression to show all. "2" will show every other, and the default, "0" will mean for Reporting Services to optimize as it sees fit, usually between every fourth or sixth element.