我有一个包含以下字段的数据集:
Serialnumber, Dateofpayment, Paymentamount, Sourcecode and Campaign.
我的数据只有两种事件类型,BS12 和 BS13。
我正在尝试按事件绘制付款金额的运行总计。在图表中,我有以下 Y 值表达式:
=RunningValue(Fields!PAYMENTAMOUNT.Value, SUM, "Campaign")
但是,我一直收到错误:
The Y expression for the chart 'Chart1' has a scope parameter that is not valid for RunningValue, RowNumber of Previous. The scope parameter must be set to a string constant that is equal to the name of a containing group within the Tablix 'Chart1'.
我查找了多个来源,我觉得我做的是对的,Campaign 显然是我的 Tablix 中的一个字段,我已将其作为字符串输入。为什么会发生错误? - 有人可以帮助我吗?
最佳答案
它提示范围参数:“Campaign”。您无需将列名称传递给函数,而是需要在图表中的该列上定义一个组(如果还没有)并传递该组的名称。一个例子 here .
关于sql-server - 如何在 SQL Server Reporting Services 的 RunningValue 函数中指定组?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16352377/