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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch 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
v-shex-msft
Community Support
Community Support

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

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

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? 

v-shex-msft
Community Support
Community Support

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

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.