0

我有列分组。在组页脚中,我有这个表达式来给出该组的平均分数。

=Avg(Fields!Score.Value)

当我运行报告时,Average 列显示为#Error。

我该如何解决。我正在使用 C# Winforms,VS2008

它显示警告为

Warning:The Value expression for the textbox ‘textbox55’ uses a numeric aggregate function on data that is not numeric.  Numeric aggregate functions (Sum, Avg, StDev, Var, StDevP, and VarP) can only aggregate numeric data. (rsAggregateOfNonNumericData)

最初我通过将 Score 设置为 char(50) 创建了表。但现在我更改了数据库,数据类型为分数的小数。而且在报告中,Dataset->perfscoretbl->Score->DataType 为 System.Decimal。

但它仍然显示为#Error。

4

1 回答 1

0

我跟着这个链接。它现在工作正常。关联

于 2015-03-16T06:54:35.773 回答