开发者

Does any one know how to do a weighted average (sumproduct/total) in matrix in SSRS 2008

I have just started using SSRS 2008开发者_如何学Go and needs to have a weighted avg for the columns. I know there a recursive sum, but not sure how to use it and achieve it?

If M is month, V is value then I need weighted avg = M1V1 + M2V2 + M3V3 / V1+V2+V3.


The expression

=Sum(Fields!M.Value*Fields!V.Value)/Sum(Fields!V.Value)

should do the trick

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜