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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

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
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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.