- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Why won't matrix summarize correctly?
Hello! I'm going to show my full ignorance of DAX here so just keep that in mind when you see the code I wrote for this. My issue is that the columns are displaying the correct values in this matrix, but the "Total" column only wants to show one of the values and isn't adding everything up. I'm sure it's because of my DAX but I don't know the exact issue. Here is the Matrix and the DAX:

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Hi @JLambs20 ,
It seems that the total value of measure is not correct, right? This document has a detailed explanation.
Please refer to.
Add an index column from 1 in Power Query.
Create a measure.
VAR _b =
SUMMARIZE ( 'Table', 'Table'[Index.1], "aaa", [Year 3 cost])
RETURN
IF ( HASONEVALUE ( 'Table'[Index.1] ),[Year 3 cost] , SUMX ( _b, [aaa] ) )
There is also a post, please refer to it to see if it helps you.
How to remove duplicates count
If I have misunderstood your meaning, please provide more details with your desired output and pbix file without privacy information (Or some sample data).
Best Regards
Community Support Team _ Polly
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Hi @JLambs20
Check this blog post, that might be useful and help you to sort out this issue:
https://www.vahiddm.com/post/why-my-measure-returns-the-wrong-total
If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!

Helpful resources
Subject | Author | Posted | |
---|---|---|---|
08-25-2024 08:26 AM | |||
10-11-2024 02:50 AM | |||
12-24-2024 08:02 AM | |||
10-10-2024 07:50 AM | |||
01-28-2025 03:52 AM |
User | Count |
---|---|
141 | |
115 | |
82 | |
63 | |
48 |