2013-07-30 12 views
0

我有一類基團與下式的軸標籤軸標籤:獲取BC30519從表達式爲使用日期部分

=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. 

這看起來不復雜或不尋常,但它不起作用。任何建議?

回答

0

DatePart函數中的第3個參數不能是字符串。嘗試

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

謝謝!這解決了它。 –

+0

很高興它的工作:)請標記爲答案,如果解決方案是有幫助的 –

+0

並請重溫您的舊問題的其他答案。如果你不接受答案,你將不會得到任何新答案。 –

相關問題