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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
MichaelG1117
Helper I
Helper I

Changing TOTAL on a Matrix Visual from a SUM to and AVERAGE

Hi Everybody,

 

The initial measure I used to get the Average Per Week Per Country is somewhat suspect but it worked. I just divided by the amount of weeks involved in the time period: 

 

Captureg.PNG

 

***I don't know if this information is worthwhile but the previous measure is based on a prior measure for "Order Amount": 

 

Captureh.PNG

** 

 

 

When I put the Average Per Week Per Country measure into a Matrix I get the right numbers but the total is a sum: 

 

Capturef.PNG

I need the total AVERAGE of the 6 countries, not the sum. Is there a way to do this that can be inscribed inside of the Average Sales Per Week Per Country measure? I'm only supposed to create a set number of measures for this.

 

Again, thanks for any help.

 

-Michael G.  

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi  @MichaelG1117 ,

Based on what you’ve mentioned, to change total on a Matrix Visual from a sum to and average by using DAX, you can follow these steps:

Here are my test data:

vheqmsft_0-1703148574330.png

1.Create a measure to count average of sum of the amount

 Average Sales Per Week Per Country-corrected = VAR T = SUMX ( 'Order', 'Order'[SalesPrice] * 'Order'[OrderQuetity] ) RETURN IF ( ISFILTERED ( 'Order'[Country] ), T, T/55) 

2.Final output

vheqmsft_0-1703148700374.png

In order for you to solve the problem faster, you can refer to the following documentation

How to Get Your Question Answered Quickly - Microsoft Fabric Community

Best Regards,

Albert He

 

 

 

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi  @MichaelG1117 ,

Based on what you’ve mentioned, to change total on a Matrix Visual from a sum to and average by using DAX, you can follow these steps:

Here are my test data:

vheqmsft_0-1703148574330.png

1.Create a measure to count average of sum of the amount

 Average Sales Per Week Per Country-corrected = VAR T = SUMX ( 'Order', 'Order'[SalesPrice] * 'Order'[OrderQuetity] ) RETURN IF ( ISFILTERED ( 'Order'[Country] ), T, T/55) 

2.Final output

vheqmsft_0-1703148700374.png

In order for you to solve the problem faster, you can refer to the following documentation

How to Get Your Question Answered Quickly - Microsoft Fabric Community

Best Regards,

Albert He

 

 

 

Definitely on the right track, this is what turned out to be the final solution: 

 

Capturek.PNG

 

 "Quantity"*"Sales Price"/55 because there's 55 weeks total over the duration of time and "total price"/6 because there's 6 countries involved. Thank a million for your help!

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 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.