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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
blueshell
New Member

Weighted average line chart instead of simple average

 

Currently in the analytics pane of the visual, we can show simple average line on line chart. However, I want a line that represent the weighted average instead of the simple average. Is it possible to do?

We do  weighted average in almost every chart we generate, wish Power BI has this funtion built in...

 

below is the data:

Month Sales Score sale x score 
January         949,8007          6,648,600
January         458,40010          4,584,000
January         903,8006          5,422,800
February      1,135,8008          9,086,400
February         505,8004          2,023,200
February      1,503,1008       12,024,800
March      1,607,6005          8,038,000
March      1,288,9007          9,022,300
March         250,0009          2,250,000

 

I like the line chart show  "weighted average score" dynamicly...

Monthaverage score weighted average score 
January                7.67                      7.20
February                6.67                      7.36
March                7.00                      6.14

 

Thanks!

1 ACCEPTED SOLUTION

@blueshell should be easy, try following

 

Add new column

 

Sales x Score = Table[Sales] * Table[Score]

 

Add following measure for Avg

 

Weighted Avg = 
DIVIDE ( SUM ( Table[Sales] ), SUM ( Table[Salex x Score] ) )

 



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

View solution in original post

5 REPLIES 5
linettedavis
New Member

How can we bring in a "Weighted Average" measure into a line or bubble chart?

parry2k
Super User
Super User

@blueshell how you calculated teh weighted average score here?



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Capture.PNG

@blueshell should be easy, try following

 

Add new column

 

Sales x Score = Table[Sales] * Table[Score]

 

Add following measure for Avg

 

Weighted Avg = 
DIVIDE ( SUM ( Table[Sales] ), SUM ( Table[Salex x Score] ) )

 



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

This is my first trying using PowerBI to create a chart. Your answer totally solved my problem. Thanks a lot!😀

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

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