Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
I have matrix visual in my report.
Matrix have 3 rows (Country, State , city) anmd I have filtered it out to one city for troubleshooting purposes. I also added a another row so the appid so in my visual i can see list of ids for this city. the count says 555 but when i export it i only see 350 records. I figured maybe issue is with exporting data from visual however i also when to perfomance analyzer and refrsshed the visual, copy the DAX code and run it inside Dax Studio and I am seeing there only 350 records. What is the issue?
Solved! Go to Solution.
The issue is your DAX total and how it's evaluating within the matrix. The total doesn't work like an excel total but evaluates in the context of the total row. If you can post a screenshot of the visual and the total measure we can help further with the DAX.
Here is a helpful video from Pragmaic Works as well explaining: Why Your Power BI Totals Are WRONG
I believe it is the REMOVEFILTERS fuction that is complicating the totals here. Because your total row will be a total of the measure evaluated against only your TREATAS functions and not anything else in the filter context of the report. This is most likely why the total row doesn't match the results of the matrix or the export.
But the totals in matrix are correct? I am trying to export the list of these 555 records so I can compare with external data
Perhaps I misunderstood, apologies for that. If the results you are getting in the matrix (350 rows) and the total of the matrix (555 rows) aren't matching there is most likely a disagreement with the visuals filter context and the DAX total.
The issue is your DAX total and how it's evaluating within the matrix. The total doesn't work like an excel total but evaluates in the context of the total row. If you can post a screenshot of the visual and the total measure we can help further with the DAX.
Here is a helpful video from Pragmaic Works as well explaining: Why Your Power BI Totals Are WRONG
This is the measure used for that column
CALCULATE (
[Approvals_2025],
REMOVEFILTERS (Table_A),
TREATAS ( VALUES ( Table_A[Country]), Table_B[Country]),
TREATAS ( VALUES ( Table_A[State]), Table_B[State] ),
TREATAS ( VALUES ( Table_A[City] ), Table_B[City] )
)
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 45 | |
| 34 | |
| 27 | |
| 15 | |
| 15 |
| User | Count |
|---|---|
| 58 | |
| 56 | |
| 38 | |
| 21 | |
| 21 |