Skip to main content
Announcements
Global Transformation Awards! Applications are now open. Submit Entry
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Weighted average

Hi,

I have this challenge where I would like to calculate the average of product time across products (a, b, c).

The simple avg function gives me the average (10 + 100 + 300) / 3  =  137.

But i want the weighted average where sales quantity is taken into account: (10/90)*10 + (30/90)*100 + (50/90)*300 = 201.

How do i write an expression for this?`

/ Michael

   

yearmonthproductsales quantityproduct time
2016augusta1010
2016augustb30100
2016augustc50300
90
11 Replies
sudhakar_budde
Creator
Creator

Hi Marco,

I am facing the same challenge. But for the year 2016 I wanted to see the 201 as Michael asked on the totals!

Any ideas please?

Thanks

SB

Rich5678
Contributor III
Contributor III

Can someone please respond to MichaelWad's question..

How to get the Weighted Average in Total Row of Simple Table?