我想提出一个SSRS,执行查询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
当但是当我预览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
的Ive到很多话题,但不能似乎找到一个方法来解决这个问题。
我不确定这与您的查询有关。你的查询是否在SSMS中运行?我认为它可能与textbox21中的某些内容有关。该文本框是否有表达式? – Jesse