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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
DataCatChan
Regular Visitor

How to Aggregate Calculated Averages

Hey All,

 

I have a large table of performance data that includes brands and sub-brands, which I use to calculate overall performance as an average. Forgive the anonymised data!

 

Example below, and relevant points are:

  • % Diff is calculated as Total this year/ total previous year. This is just a dummy calculation, it doesn't actually show YOY.
  • The sub-brands roll up to the brands, so the sum of sub-brands A1-A2 create the total for brand A.
  • On the backend I have % Diff inserted as a calculated field added to the brand table.

 

Brand NameTotal Previous YearTotal This Year% Diff
Sub-brand A17,485,5947,392,23898.75%
Sub-brand A2262,547260,14999.09%
Brand A total7,748,1427,652,38798.76%

 

My problem is that I can't correctly calculate the % Diff for Brand A in the report view. If I create a table of the averages then it takes the averages of sub-brands A1/A2 to give an overall average % diff as 98.92%, NOT the correct average % diff above. This is because it's averaging the two averages, instead of aggregating and averaging the underlying values.

 

So the calculation that's currently happening in PowerBI to get the % diff for Brand A total is:

(98.75% + 99.09%) / 2 = 98.92%

Which is wrong.

 

What should be happening is:

7,652,387 / 7,748,142= 98.76%

 

This happens automatically in Excel, if it helps. Any help appreciated, thanks!

1 ACCEPTED SOLUTION
Jihwan_Kim
Super User
Super User

Hi,

I am not sure how your semantic model looks like, but I tried to create a sample pbix file like below.

Please check the below picture and the attached pbix file.

 

Jihwan_Kim_1-1725468403442.png

 

 

Jihwan_Kim_0-1725468390253.png

 

 


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.

View solution in original post

1 REPLY 1
Jihwan_Kim
Super User
Super User

Hi,

I am not sure how your semantic model looks like, but I tried to create a sample pbix file like below.

Please check the below picture and the attached pbix file.

 

Jihwan_Kim_1-1725468403442.png

 

 

Jihwan_Kim_0-1725468390253.png

 

 


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Kudoed Authors