【发布时间】:2017-07-06 01:52:08
【问题描述】:
执行查询时,我正在制作 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
但是当我预览报告时,我收到了这条警告消息。
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
我去过很多主题,但似乎找不到解决这个问题的方法。
【问题讨论】:
-
我不确定这与您的查询有关。您的查询是否在 SSMS 中运行?我认为这可能与 textbox21 中的某些内容有关。那个文本框有表达式吗?