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
rmcgrath
Advocate II
Advocate II

Matrix Visual have the Grand Total be Average instead of Sum

I swear I have done this in the past pretty easily, but how do I show Average instead of Total in a Matrix Visual (for the Grand Column Total)?

rmcgrath_0-1735946180241.png

I thought there was a quick way to do this in the Visualizations Pane?  Did that feature get removed?  I'm currently using Power BI Version 2.138.1452.0 64-bit (November 2024)

1 ACCEPTED SOLUTION

Hi @rmcgrath 

The total can be adjusted to be any aggregate value. The 0.125 could represent a min, max, first, last, total, avg... we wouldn't know unless we dive deeper into your model...

 

with that being said, it's very possible to show the average of the totals (and only at the total level). Since your data is confidential and you cannot provide us with some sample data with sample results, you'll need to create an average expression and then either check to see if your row total is in scope using one or more of the combination: ISINSCOPE, HASONEVALUE, HASONEFILTER, ISFILTERED. If the value of the row and column context is not in scope, then that's your total line. Then, you'll tell DAX to return your average expression instead of the total. 

 

Hope that helps. 



Did I answer your question?
Please help by clicking the thumbs up button and mark my post as a solution!

View solution in original post

6 REPLIES 6
rmcgrath
Advocate II
Advocate II

Another weird thing going on:  look what it does to the Total when I switch to Price:

rmcgrath_0-1736121795950.png

I have no idea what that amount "0.125" is supposed to represent??

Here is the Total when I switch to Quantity:

rmcgrath_1-1736121901082.png

 

 

Hi @rmcgrath 

The total can be adjusted to be any aggregate value. The 0.125 could represent a min, max, first, last, total, avg... we wouldn't know unless we dive deeper into your model...

 

with that being said, it's very possible to show the average of the totals (and only at the total level). Since your data is confidential and you cannot provide us with some sample data with sample results, you'll need to create an average expression and then either check to see if your row total is in scope using one or more of the combination: ISINSCOPE, HASONEVALUE, HASONEFILTER, ISFILTERED. If the value of the row and column context is not in scope, then that's your total line. Then, you'll tell DAX to return your average expression instead of the total. 

 

Hope that helps. 



Did I answer your question?
Please help by clicking the thumbs up button and mark my post as a solution!
OwenAuger
Super User
Super User

Hi @rmcgrath 

If you add a quick measure to the existing matrix (by right-clicking on the existing measure in the Values field well or on the ribbon) and choose "Average per category", it should auto-populate with the existing grouping field and measure displayed in the matrix.

 

I tested it myself with a matrix showing Sales Amount by Week Start and the Quick Measure pane looked like this:

OwenAuger_0-1735948349456.png

 

Does this work for you?


Owen Auger
Did I answer your question? Mark my post as a solution!
Blog
LinkedIn

Unfortunately, no.  I forgot to mention I have a paramenter where the user can select between price and quantity.  I wonder if that's why it did not work for me?

Hi,

Share the download link of the PBI file.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

I can't do that - it contains private data

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 Kudoed Authors