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

Get inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.

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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code FABINSIDER for a $400 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

Check out the February 2025 Power BI update to learn about new features.

March2025 Carousel

Fabric Community Update - March 2025

Find out what's new and trending in the Fabric community.