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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors