Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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,800 | 7 | 6,648,600 |
January | 458,400 | 10 | 4,584,000 |
January | 903,800 | 6 | 5,422,800 |
February | 1,135,800 | 8 | 9,086,400 |
February | 505,800 | 4 | 2,023,200 |
February | 1,503,100 | 8 | 12,024,800 |
March | 1,607,600 | 5 | 8,038,000 |
March | 1,288,900 | 7 | 9,022,300 |
March | 250,000 | 9 | 2,250,000 |
I like the line chart show "weighted average score" dynamicly...
Month | average score | weighted average score |
January | 7.67 | 7.20 |
February | 6.67 | 7.36 |
March | 7.00 | 6.14 |
Thanks!
Solved! Go to 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.
How can we bring in a "Weighted Average" measure into a line or bubble chart?
@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.
@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!😀
Check out the July 2025 Power BI update to learn about new features.
User | Count |
---|---|
72 | |
72 | |
38 | |
31 | |
26 |
User | Count |
---|---|
97 | |
86 | |
43 | |
40 | |
35 |