11

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.

4

1 回答 1

9

这里的范围需要是您在图表中设置的系列组的名称,而不是下面设置的 Tablix 的列组,例如:

在此处输入图像描述

我基于以下内容创建了一个简单的测试:

在此处输入图像描述

将图表数据表达式设置为:

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

我得到以下信息:

在此处输入图像描述

这是不正确的,但与您所看到的相似。

如果我将表达式更改为:

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

我得到以下信息:

在此处输入图像描述

这是正确的,因此您似乎只需将 Scope 设置为正确的系列组名称。

于 2013-05-06T10:31:23.340 回答