Skip to main content
Microsoft Idea

Power BI

Needs Votes

Weighted Average

Vote (84) Share
Joel's profile image

Joel on 14 Apr 2016 01:11:55

It would be great if there was a way to create a weighted average. For example, if you have units and prices which vary, it would be great to have a quick and easy way to create a weighted average price when you slice the data. It would basically be a sumproduct of the units and prices divided by the sum of the products.

Comments (5)
Joel's profile image Profile Picture

Michael Houghton on 24 Jan 2022 19:41:12

RE: Weighted Average

Weighted average should also be a selection in Power Query grouping the values in a table. Currently, sums, non-weighted average, etc.

Joel's profile image Profile Picture

Power BI Ideas Admin on 05 Jul 2020 22:49:31

RE: Weighted Average

You can already do this with simple DAX statements. Similarly to the idea of SUMPRODUCT in Excel, you can use SUMX([col1]*[col-weights])/sum[col-weights]

Joel's profile image Profile Picture

Power BI User on 05 Jul 2020 22:47:50

RE: Weighted Average

Weighted average interest rate would be great for us. You would need to be able to specify what you were weighting by (eg face value or market value).

Joel's profile image Profile Picture

Aaron Gourlay on 05 Jul 2020 22:44:19

RE: Weighted Average

Also could do with other ttpes of trend line such as Power Exponential etc

Joel's profile image Profile Picture

Power BI User on 05 Jul 2020 22:33:05

RE: Weighted Average

Having a weight column would be a great addition.