Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
I have a simple dashboard with a few donut charts and a Matrix. The matrix continually fails to load and shows the error shown below "Error fetching data for this visual. The resultset of a query to external data source has exceeded the maximum allowed size of '2000000' rows."
I know the results for the matrix are less than 2,000,000 rows. In fact, most of the results are less than 100 rows.
I suspect the data model is causing the issue, but I'm unsure how to determine that to be the problem or how to resolve it.
The largest table in my dataset is around 15,000,000 records. I've attempted to change this table from Direct Query to Import, but Power BI simply won't process changing the table to Import.
I'm stuck and unable to solve this so any help would be greatly appreciated.
Hi @ERing ,
DirectQuery defines a limit of 1 million rows for data returned from cloud data sources that are not local to any data source. Local sources are limited to a defined payload of approximately 4 MB per row (depending on the proprietary compression algorithm) or 16 MB (for the entire visual object).
Premium capacity allows you to set a different maximum row limit, and Power BI Premium capacity settings are provided in the portal, preloaded with default values. Administrators can view and override the defaults based on their preferences to better protect their capacity from issues and avoid problems before they arise.
More detailed information can be found at the link:
Use DirectQuery in Power BI Desktop - Power BI | Microsoft Learn
Power BI Premium new capacity settings allow for more control over datasets | Microsoft Power BI Blo...
Here is another solution to a problem similar to yours:
Solved: The resultset of a query to external data source h... - Microsoft Fabric Community
Best Regards,
Clara Gong
If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @ERing
Follow the given steps to find the problem and solve it as:
Use Performance Analyzer in Power BI Desktop to capture the DAX query for the matrix. Run it in DAX Studio to identify issues with query size or performance.
Optimize Data Model:
Adjust the Matrix Visual:
Switch to Import Mode:
Power BI Settings:
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Happy to help!
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
69 | |
68 | |
40 | |
29 | |
26 |
User | Count |
---|---|
88 | |
49 | |
45 | |
38 | |
37 |