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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

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
v-shex-msft
Community Support
Community Support

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

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

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/
v-shex-msft
Community Support
Community Support

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

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

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!

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.