Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Jeff_Ng
Frequent Visitor

How to calculate weighted average from a same column

Hi,

 

Hope you can help me with this. Many thanks in advance. 

 

I want to create a measure in Power BI to calculate weighted average diameter from a same column/table as shown in table below. This measure must be able to be filtered by Date and Reach in the line chart.   

 

Jeff_Ng_1-1615461416728.png

 

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hello @Jeff_Ng ,

In power query editor, pivot the Item column using values Units.

 

Then in report create a measure

Measure = (SUM(TableName[Pipe Length(km)])*sum(TableName[Diameter(mm)]))/SUM(TableName[Pipe Length(km)])
 

View solution in original post

1 REPLY 1
Anonymous
Not applicable

Hello @Jeff_Ng ,

In power query editor, pivot the Item column using values Units.

 

Then in report create a measure

Measure = (SUM(TableName[Pipe Length(km)])*sum(TableName[Diameter(mm)]))/SUM(TableName[Pipe Length(km)])
 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.