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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
scherd
Frequent Visitor

How to change total column sum to average in matrix?

Hi,

I am trying to take average of row values rather than sum in matrix.

I have seen https://community.powerbi.com/t5/Desktop/Median-of-Row-Column-in-Matrix/m-p/58209#M23837 this

post which is totally what I intended to solve, but it changes row values as well.

I want to keep row values, and only change the total column sum to average in row based.

If anyone has an idea, I would be grateful.

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi scherd,

 

Based on my understanding, you want to get the average total of your records and keep row values, right?

 

You can add a unique column to keep the values.(based on Michael_Shao’s point).

Below is the Sample:

 

1. Create a table.

 Capture.PNG

 

2. Create the matrix visual.

 Capture2.PNG

Capture3.PNG

As you said, the value has changed.

 

3. Add a unique column to fix the issue.(e.g. add an index column in Query Editor)

 1.png

 

 Capture4.PNG

 

4. Add this column to matrix.

Capture5.PNG 

 

Capture6.PNG

The issue has been fixed.

 

Regards,

Xiaoxin Sheng

View solution in original post

3 REPLIES 3
Kashuo
Helper I
Helper I

Hey I figured out another way to do this. You can create a new measure and use DAX to create an AVERAGE of any column in your table. Then create a new matrix and include those average measures. Turn totals off in the general settings of your original table and position your new 1-row table directly below your other table. Include a text object to the left to label is at averages.

Hi @Kashuo 

 

May I know how did you create a DAX measure to calculate AVERAGE of any column, Please? 

Anonymous
Not applicable

Hi scherd,

 

Based on my understanding, you want to get the average total of your records and keep row values, right?

 

You can add a unique column to keep the values.(based on Michael_Shao’s point).

Below is the Sample:

 

1. Create a table.

 Capture.PNG

 

2. Create the matrix visual.

 Capture2.PNG

Capture3.PNG

As you said, the value has changed.

 

3. Add a unique column to fix the issue.(e.g. add an index column in Query Editor)

 1.png

 

 Capture4.PNG

 

4. Add this column to matrix.

Capture5.PNG 

 

Capture6.PNG

The issue has been fixed.

 

Regards,

Xiaoxin Sheng

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

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