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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
eRic_LaU
Frequent Visitor

calculate weighted average

Greating All, 

I have a table and would like to caluate the weighted average, can Power BI work on that?

eRic_LaU_1-1700657346367.png

Secondly I have created a Matrix table by using visualizations, and put a Average of Rating as the values, but I found that the total value also in averaged can it change into sum of total? the ans prefer to be 100%

eRic_LaU_2-1700657552535.png

 

Looking for someone help, thanks a lot.

 

1 REPLY 1
oritam3210
Helper I
Helper I

Hi @eRic_LaU,

You can calculate the weighted average by using the AVERAGEX function.

 

The basic formula for this function is

AVERAGEX( TableName, TableName[Mark] * TableName[Rating] )

 

Regarding the total, this new calculation might resolve the issue.

Alternatively, you can choose to hide the total line if necessary.

 

Good Luck

---------------------------------------------------------------------------------------------------------------------
If you find this helpful, kindly consider marking it as 'Accepted Solution.'
This action helps others quickly find a reliable answer!

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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