SSRS返回的数据类型对聚合函数无效

Via*_*cia 6 reporting-services

我在执行查询时正在制作SSRS

SELECT Brand.[KeyOffer],
   COALESCE(SUM([Key Offer].Revenue),0) as Revenue
FROM [Brand Key Offer] Brand
LEFT JOIN [Key Offer] ON Brand.Keyoffer = [Key Offer].[Key Offer] AND [Key Offer].[Date] = '7/05/2017'
WHERE Brand.[Brand] = 'SMART'
GROUP BY [Brand].[KeyOffer]
ORDER BY [Revenue] DESC
Run Code Online (Sandbox Code Playgroud)

但是当我预览reprot时,我收到了这条警告信息.

Warning     [rsAggregateOfInvalidExpressionDataType] The Value expression for the textrun ‘Textbox21.Paragraphs[0].TextRuns[0]’ uses an aggregate function with an expression that returned a data type not valid for the aggregate function.       c:\users\t-aordiz\documents\visual studio 2015\Projects\TelemarketingRS\TelemarketingRS\Telemarketing Revenue.rdl   0   
Run Code Online (Sandbox Code Playgroud)

我去过很多主题,但似乎无法找到解决这个问题的方法.

小智 9

当我尝试将输出的数据类型从datetime更改为varchar时,同样的情况发生在我身上.

尝试删除文件YourReportFile.rdl.data并再次预览.它在VS2015中对我有用.