2012-11-26 14 views
0

我不能为我的生活弄清楚这一点。我在SSRS一个表,有一个看起来像这样的数据:折线图中RunningValue中的示波器参数无效

days P 
0  0.99 
26  0.98 
57  1 
97  0.97 
99  0.99 

我想要做的就是情节P的值的滑动产品,我可以通过计算以下值让他们在一个表:

=exp(RunningValue(Fields!P.Value, Sum, "data")) 

而且工作正常。然而,当我尝试分散绘图时,我的情节中没有任何东西出现。

对于我的价值,我有:

X: =Fields!d.Value 
Y: =exp(RunningValue(Fields!P.Value, Sum, "data")) 

任何类别或系列价值我尝试似乎打破了剧情,让我在下面的错误一些变化:

The DataPoint expression for the chart 'chart1' has a scope parameter that is not valid for RunningValue, RowNumber or Previous. The scope parameter must be set to a string constant that is equal to the name of a containing group within the matrix 'chart1'.

+0

什么版本的Reporting Services这是什么? –

+0

这是SSRS 2005。 – slammaster

回答

0

我没有最近尝试过,但旧版本的Reporting Services不允许在图表中使用运行总计。

然而,最喜欢的事情,你可以伪造它使用SQL:

SELECT Detail.days, MIN(Detail.P) AS P, SUM(RunTotal.P) AS PRunTotal 
FROM MyTable AS Detail 
INNER JOIN MyTable AS RunTotal ON RunTotal.days <= Detail.days 
GROUP BY Detail.days 
ORDER BY Detail.days