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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Anonymous
Not applicable

Directquery Row limit

I have a table having more than 50 lacs of data and is in directquery mode. There are Slicers and matrix visuals on the report page. while loading the matrix visual I am getting error of "the resultset of a query to external data source has exceeded the maximum allowed size of 1000000 rows.

The visual is summarising count based on 2 tables, one of which is having these 50 Lacs of record.. If I run a SQL query to summaerise these columns in SQLDB enviornment, it runs perfectly and the output does not contain records more than 100. when I checked SQL query generated in Power BI Desktop using performane analyser, it has a select clause as "SELECT
TOP (1000001)" 

Can someone help me in understanding  exactly how this works

1 ACCEPTED SOLUTION

Hi @Anonymous 

This blog will help you understand why this error occurs and how to increase the row limit to adapt your scenario.

https://www.sqlbi.com/articles/tuning-query-limits-for-directquery/

 

Best Regards
Maggie
Community Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
amitchandak
Super User
Super User

@Anonymous , Do you have bi-directional join.

 

refer this

https://www.youtube.com/watch?v=4kVw0eaz5Ws

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

There is one to Many relationship between the table with cross filtering direction set as Single. The error generally occurs when slicers have All. If any specific value is selected then it works as expected. 

 

Hi @Anonymous 

This blog will help you understand why this error occurs and how to increase the row limit to adapt your scenario.

https://www.sqlbi.com/articles/tuning-query-limits-for-directquery/

 

Best Regards
Maggie
Community Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.