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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

July 2024 Power BI Update

Power BI Monthly Update - July 2024

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

July Newsletter

Fabric Community Update - July 2024

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