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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Employee
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
Employee
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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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