Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Running Value Chart in SSRS - How to get each series to start at 0?

enter image description hereenter image description here

I have a table in SSRS, with income from two campaigns.

My columns are:

  • serialnumber
  • DateOfPayment
  • PaymentAmount
  • DaysSinceCampaign
  • Campaign

I want my chart to plot a running total of paymentamount by DaysSinceCampaign for each campaign (bs13 and bs12). I'm pretty close, as shown above - but for some reason, the BS13 campaign starts at 20,000, appearing to be adding on to BS12 - when it is supposed to start at 0.

In the Values section for Chart Data, I have used this formula:

=RunningValue(Fields!PAYMENTAMOUNT.Value,SUM,nothing)

I have tried changing 'nothing' to "campaign", and have tried defining 'Campaign' as a row group and a column group - but it keeps returning the same error: that the scope parameter must be set to a string constant equal to a containing group.

like image 909
JackReacher Avatar asked May 06 '13 06:05

JackReacher


People also ask

How do I change vertical axis values in SSRS?

Right-click the chart axis that you want to change, and then click Axis Properties. In the Horizontal Axis Properties dialog box > Axis Options tab, set Interval to Auto. The chart will display the optimal number of category labels that can fit along the axis. Click OK.

How do you plot a graph in SSRS?

To add a chart to a report For more information, see Report Datasets (SSRS). On the Insert tab, select Chart, and then select Insert Chart. Select the design surface where you want the upper-left corner of the chart, and then drag to where you want the lower-right corner of the chart.


1 Answers

The scope here needs to be the name of the Series Group you set up in the chart, not the Column Group of the Tablix that is set up below, something like:

enter image description here

I created a simple test based on:

enter image description here

With the Chart data expression set to:

=RunningValue(Fields!PaymentAmount.Value, Sum, Nothing)

I got the following:

enter image description here

Which is incorrect, but similar to what you're seeing.

If I change the expression to:

=RunningValue(Fields!PaymentAmount.Value, Sum, "Chart1_SeriesGroup1")

I get the following:

enter image description here

Which is correct, so it seems like you're just going to have to set the Scope to the correct Series Group name.

like image 59
Ian Preston Avatar answered Oct 05 '22 00:10

Ian Preston