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
damiendry
Regular Visitor

Weighted averages rolled up two levels

 Howdy All,

 

Looking to roll up weighted averages across multiple levels. First to a group level, then to a class level. The below table gives a brief dataset overview.

 

damiendry_0-1681799462169.png

 

 

I'm struggling to roll up the average weight sum for the class level (in green), the Group level appears to work alright but struggling for the class level.

 

Any feedback would be appreciated.

 

Warm Regards

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @damiendry,

According to your description, it seems like a common multiple aggregations requirement.

You can create a variable with SUMMARIZE function to do the first level aggregate and use iterator function SUMX to apply the second level on previous calculation results.

Measure Totals, The Final Word 

Regards,

Xiaoxin Sheng

View solution in original post

2 REPLIES 2
Ashish_Mathur
Super User
Super User

Hi,

Share the download link of the PBI file and also explain how to calculate the average at the Class level.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
Anonymous
Not applicable

Hi @damiendry,

According to your description, it seems like a common multiple aggregations requirement.

You can create a variable with SUMMARIZE function to do the first level aggregate and use iterator function SUMX to apply the second level on previous calculation results.

Measure Totals, The Final Word 

Regards,

Xiaoxin Sheng

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.