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
Anonymous
Not applicable

Weighted Average - Wrong Total

Hello everybody,

 

my problem is quite simple, but I've been struggling with it for the past few days looking for solutions and tutorials :

 

Basically, I have a Mob Value (hours) which is a number of hours.
I have an average staff rate which is a rate.

Then I have a Mob Value (euros) which is

Mob Value (euros) = SUM(MOB[Mob Value (hours)])* [averagestraffrate Last 6 month]

 

Values for each lines are OK

 

My problem is with the result of Mob Values (Euros) Total,

The Total is also aplying this formula : (MOB values (hours) TOTAL * Average staff rate TOTAL)

It is not doing the sum of each Mob Value (euros).

 

This is wrong because the average staff rate TOTAL should be weighted based on the number of HOURS.

The sum of each mob value (Euros) line is different than the TOTAL.

 

You can see an example below, if I sum each mob value (euros) (not visible on this pictures) I get 21 000 000 instead of 24 000 000.

 

J_MOLS_1-1612868582794.png

 

I don't really see how I could weight the average rate total ? Because each indivuals values are correct.

 

I'm sorry I can't really provide a sample of the file.

 

Do you understand my problem and hint me to a solution ?

 

Thanks,

Regards

J Mols

 

 

1 REPLY 1
amitchandak
Super User
Super User

@Anonymous ,Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.

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

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

Feb2025 NL Carousel

Fabric Community Update - February 2025

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