보고서의 각 그룹 항목에 대한 평균 가중치를 계산하려고합니다. 나는 this link에서 제시 한 모든 방법을 사용하지만, 그들 모두는 나에게 다음과 같은 오류를 제공합니다 :Reporting Services 2008의 가중 평균 계산
Warning 1 [rsAggregateOfMixedDataTypes] The Value expression for the textrun ‘textbox134.Paragraphs[0].TextRuns[0]’ uses an aggregate function on data of varying data types. Aggregate functions other than First, Last, Previous, Count, and CountDistinct can only aggregate data of a single data type.
가중 평균을 계산하는 가장 좋은 방법에 대한 어떤 제안. 내 최신 시도가 이것이다 : 당신은 하나의 텍스트를 사용하는 경우
=iif(sum(iif(Fields!weight.Value is nothing,0,Fields!weight.Value))= 0, 0, sum(iif((Fields!myData.Value * Fields!weight.Value) is nothing,0,(Fields!myData.Value * Fields!weight.Value)))/ sum(Fields!weight.Value))
감사