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

Decomposition Tree - Calculation Issue

Hi All, 

 

So I am using a Measure to analyze in Decomposition Tree.

The measure takes an average of employee's contribution.  

The summarized average is not adding up to the bi-furcated average. Is this normal? Or am I missing something here?

 

Please see the attached example for your reference.

In the attached photo - you will see that - Total Average is called out as 9.69

 Decomposition issue.JPG

however when I bi-furcate it into the area:

Productive: 7.98

Break: 1.60

Other: 0.40

The sum of these three comes close to 9.98 which is greater than our total average.

 

Please help me understand this issue.

Regards

Raj

2 ACCEPTED SOLUTIONS
Anonymous
Not applicable

It is simple math , you can not add average values and expect the total sum of those averages to be equal to total average.

View solution in original post

Anonymous
Not applicable

@rajprabhakaran2
Let's have 19 numbers in groups 6.10 and 3:
the averages are:
30/6-5
40/10-4
30/3-10

now add these averages 5 + 4 + 10 - 19
as a whole (30+40+30)/19-5.26

5.26 will never be equal to 19. Similarly, you are getting difference in average. It can only be true if all n values are the same:

If my answer was helpful, consider Accepting it as the solution to help other members find it

Click the Thumbs-Up icon if you like this answer.

View solution in original post

3 REPLIES 3
amitchandak
Super User
Super User

@Anonymous , what us your average formula

 

Is it like Averagex(Table, divide(Table[Val1],Table[Val2]))

 

if so it should be

Divide(sum(Table[Val1]),Sum(Table[Val2]))

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

It is simple math , you can not add average values and expect the total sum of those averages to be equal to total average.
Anonymous
Not applicable

@rajprabhakaran2
Let's have 19 numbers in groups 6.10 and 3:
the averages are:
30/6-5
40/10-4
30/3-10

now add these averages 5 + 4 + 10 - 19
as a whole (30+40+30)/19-5.26

5.26 will never be equal to 19. Similarly, you are getting difference in average. It can only be true if all n values are the same:

If my answer was helpful, consider Accepting it as the solution to help other members find it

Click the Thumbs-Up icon if you like this answer.

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! Prices go up Feb. 11th.

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.