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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
Domenick
Helper IV
Helper IV

Matrix Totals not making sense

Can someone tell me what on earth is PowerBI's logic here? And how can I get it to show the average of all the numbers in the row?

Domenick_1-1677601996755.png

 

 

Domenick_0-1677601937769.png

 

2 REPLIES 2
MAwwad
Solution Sage
Solution Sage

 

In your matrix visual, it looks like the Total column is displaying the sum of the values in each row, while the Grand Total row is displaying the sum of the values in each column.

To display the average of all the numbers in each row, you can add a new measure to your data model that calculates the average for each row, and then use that measure in your matrix visual.

Here's an example of how to create the measure:

  1. Go to the "Modeling" tab in the Power BI Desktop ribbon.
  2. Click "New Measure" and give the measure a name, such as "Row Average".
  3. In the formula bar, enter the following formula, replacing "Table" and "Value" with the names of your table and value column:

 

 
Row Average = AVERAGE('Table'[Value])
 
  1. Click "Enter" to create the measure.

Once you have created the measure, you can add it to your matrix visual by dragging it from the "Fields" pane to the "Values" area of the visual. You should then see the average value for each row in the Total column of the matrix visual.

Thanks, that does make sense but in this situation, this would create an additional column beside each existing column which is not what I want. I want one summary column.

Helpful resources

Announcements
Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

Jan NL Carousel

Fabric Community Update - January 2025

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