Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
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!
User | Count |
---|---|
81 | |
75 | |
74 | |
42 | |
36 |
User | Count |
---|---|
114 | |
56 | |
51 | |
42 | |
42 |