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
ErickReris
Frequent Visitor

Sum of the values in a Matrix

Hello everyone, how are you?

I need your help. I have a Matrix in Power BI where, after adding a measure, it is not displaying the sum of the values for that hierarchy, as shown in the image below:

ErickReris_1-1729255670846.png

 

How can I make this measure show the sum of the values under the '3.1 Wi-Fi 5' hierarchy in the same row?

In summary, what I want is to display the sum of the values below '3.1 Wi-Fi 5' so that it groups them together:

 

ErickReris_0-1729255634865.png

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @ErickReris ,

You can create new measure as below and replace the original Values field with the new measure:

Measure =
SUMX (
    VALUES ( Table[Columns field1] ),
    SUMX ( VALUES ( Table[Columns field2] ), [Values field] )
)

In addition, you can refer the following links to try to solve your problem...

Why Your Total Is Incorrect In Power BI - The Key DAX Concept To Understand

Dax for Power BI: Fixing Incorrect Measure Totals

 

If the above one can't help you figure out, please provide some raw data in your tables(exclude sensitive data) with Text format and your expected result with backend logic and special examples. It would be helpful to find out the solution. You can refer the following link to share the required info:

How to provide sample data in the Power BI Forum

 

And It is better if you can share a simplified pbix file. You can refer the following link to upload the file to the community. Thank you.

How to upload PBI in Community

Best Regards

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Hi @ErickReris ,

You can create new measure as below and replace the original Values field with the new measure:

Measure =
SUMX (
    VALUES ( Table[Columns field1] ),
    SUMX ( VALUES ( Table[Columns field2] ), [Values field] )
)

In addition, you can refer the following links to try to solve your problem...

Why Your Total Is Incorrect In Power BI - The Key DAX Concept To Understand

Dax for Power BI: Fixing Incorrect Measure Totals

 

If the above one can't help you figure out, please provide some raw data in your tables(exclude sensitive data) with Text format and your expected result with backend logic and special examples. It would be helpful to find out the solution. You can refer the following link to share the required info:

How to provide sample data in the Power BI Forum

 

And It is better if you can share a simplified pbix file. You can refer the following link to upload the file to the community. Thank you.

How to upload PBI in Community

Best Regards

audreygerred
Super User
Super User

Hello! In formatting, make sure that Row subtotals is on and that you have the Position set to Top.

audreygerred_0-1729258571505.png

 

Then you should have results like this:

audreygerred_2-1729258612477.png

 

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





"Hello, I checked what you asked for and noticed that it is exactly as you mentioned, but it is still returning zero totals.

Do you have any other suggestions? Is it possible to create a measure that performs this calculation and groups by technology in the Matrix?"

 

ErickReris_0-1729260223659.png

To provide some context, I have a measure that calculates the total number of accessories in stock and multiplies it by the return percentage of each material. This shows, as an allocation, how much of that material is expected to return from the total number of accessories.

And this is the calculation being displayed in the Matrix.

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.

Top Solution Authors