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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
timurcakin
Helper I
Helper I

weighted average calculation

Hi there,

 

 really struggling to find a solution for this, hope someone can help. 

i am trying to calculate the weigted average of "vol" per item.

 

 

timurcakin_0-1675065740239.png

next to vol column i want to see something like below

 

timurcakin_1-1675065892545.png

 

LINK TO FILE - TEST- Copy.pbix

 

appreciate if anyone can help, thanks in advance.

best regards

timur

 

1 ACCEPTED SOLUTION

@timurcakin , Try like

 

Divide([vol]), Calculate([vol], allselected()) )

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

4 REPLIES 4
amitchandak
Super User
Super User

@timurcakin , If volume is column

 

Divide(Sum(Table[VOlume]), Calculate(Sum(Table[VOlume]), allselected()) )

 

Percent of Total and Percent of SubTotal https://www.youtube.com/watch?v=6jTildcV2ho
https://www.youtube.com/watch?v=cN8AO3_vmlY&t=24270s

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Hi@amitchandak ,

Volume is measure, shared the link if needed

@timurcakin , Try like

 

Divide([vol]), Calculate([vol], allselected()) )

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

thanks @amitchandak  works like a charm!

Helpful resources

Announcements
Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

Jan NL Carousel

Fabric Community Update - January 2025

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