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
sitemarket
Frequent Visitor

Sum of Average in Matrix Table

I'm trying to get the total of the average by ProductGroup (eg 1.13 + 2.26 = 3.57). If I change the 'Values' to Average of 'Avg Step CT' in the vizualization setting. I get the right value for the rows within each Product Group. But the Product Group also Averages 'Avg Step CT'. I want the Product Group row - SPH, SPK etc to show the sum of all the rows instead of average. How can I achieve this? 

 

sitemarket_0-1663124697832.png

sitemarket_1-1663124739800.png

 

Any ideas would be greatly appreciated! 

 

 

1 ACCEPTED SOLUTION
v-rongtiep-msft
Community Support
Community Support

Hi @sitemarket ,

I have created a simple sample, please refer to it to see if it helps you.

Add an index column in Power Query first.

Then create a measure based on the Average of avg step ct.

I'll replace [Average of avg step ct] with [measure_max] here

result =
VAR _b =
    SUMMARIZE ( 'Table', 'Table'[Index], "aaa", [measure_max] )
RETURN
    IF ( ISINSCOPE ( 'Table'[Index] ), [measure_max], SUMX ( _b, [aaa] ) )

vpollymsft_0-1663223714962.png

 

If I have misunderstood your meaning, please provide more details with your desired output and pbix file without privacy information.

 

Best Regards

Community Support Team _ Polly

 

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

3 REPLIES 3
v-rongtiep-msft
Community Support
Community Support

Hi @sitemarket ,

I have created a simple sample, please refer to it to see if it helps you.

Add an index column in Power Query first.

Then create a measure based on the Average of avg step ct.

I'll replace [Average of avg step ct] with [measure_max] here

result =
VAR _b =
    SUMMARIZE ( 'Table', 'Table'[Index], "aaa", [measure_max] )
RETURN
    IF ( ISINSCOPE ( 'Table'[Index] ), [measure_max], SUMX ( _b, [aaa] ) )

vpollymsft_0-1663223714962.png

 

If I have misunderstood your meaning, please provide more details with your desired output and pbix file without privacy information.

 

Best Regards

Community Support Team _ Polly

 

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

sitemarket
Frequent Visitor

sitemarket_0-1663221371402.png

 

I want the values to sum up 

lbendlin
Super User
Super User

Please provide sanitized sample data that fully covers your issue.
https://community.powerbi.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-...
Please show the expected outcome based on the sample data you provided.

https://community.powerbi.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523

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.