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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
stribor45
Post Prodigy
Post Prodigy

Export data from visual

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?

1 ACCEPTED SOLUTION
d_m_LNK
Super User
Super User

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

-----------------------
Did this help?
Drop a kudo so others can find it ! 😄
Mark as a solution if it helped you make progress on your issue 😃

View solution in original post

5 REPLIES 5
d_m_LNK
Super User
Super User

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.

-----------------------
Did this help?
Drop a kudo so others can find it ! 😄
Mark as a solution if it helped you make progress on your issue 😃

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.

-----------------------
Did this help?
Drop a kudo so others can find it ! 😄
Mark as a solution if it helped you make progress on your issue 😃
d_m_LNK
Super User
Super User

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

-----------------------
Did this help?
Drop a kudo so others can find it ! 😄
Mark as a solution if it helped you make progress on your issue 😃

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] )
)

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.