我想提出一個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