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
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
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.

Top Solution Authors