开发者

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

开发者 https://www.devze.com 2023-02-02 16:20 出处:网络
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?

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

精彩评论

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

关注公众号