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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
Anonymous
Not applicable

Sum of average of group of sum of single value of group

Hi all,

 

In the picture below there are id's and their size. I'd like to sum all the sizes of each I'd without grouping in Power Query. I'm thinking about two possibilities but correct me if I'm wrong. 

 

2018-10-17_15-27-17.png

 

1. Choosing one size for each id and sum them 

2. Adding all Sizes for every id and dividing them by the amount of id's

 

The total must be 10 however and also when adding rows to a matrix.

 

 

Thanks in advance!!

1 ACCEPTED SOLUTION
v-jiascu-msft
Microsoft Employee
Microsoft Employee

Hi @Anonymous,

 

Try these two measures, please.

Measure =
SUMX ( DISTINCT ( 'Table1' ), [Size] )
Measure 2 =
SUMX ( SUMMARIZE ( 'Table1', Table1[_ID], Table1[Size] ), [Size] )

Sum-of-average-of-group-of-sum-of-single-value-of-group

Best Regards,
Dale

Community Support Team _ Dale
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
v-jiascu-msft
Microsoft Employee
Microsoft Employee

Hi @Anonymous,

 

Try these two measures, please.

Measure =
SUMX ( DISTINCT ( 'Table1' ), [Size] )
Measure 2 =
SUMX ( SUMMARIZE ( 'Table1', Table1[_ID], Table1[Size] ), [Size] )

Sum-of-average-of-group-of-sum-of-single-value-of-group

Best Regards,
Dale

Community Support Team _ Dale
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors