0

我有一个类别组,轴标签具有以下表达式:

=DatePart("yyyy",Fields!CreateDate.Value, "Orders")

我收到以下错误:

The Label expression for the chart contains an error: 
[BC30519] Overload resolution failed because no acessible 
'DatePart' can be called without a narrowing conversion.

这看起来并不复杂或不寻常,但它不起作用。有什么建议吗?

4

1 回答 1

0

DatePart 函数中的第三个参数不能是字符串。尝试

=DatePart("yyyy",Fields!CreateDate.Value)
于 2013-07-30T16:47:48.590 回答