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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Show more than 1 Million Rows in Direct Query

Hi All,

 I have a Power BI Report connected to an Azure SQL DB through direct query and hosted in a premium capacity Workspace and embedded in a Web Application.
The Report contains some KPI's at the top which shows the count / sum of certain columns in a table, and below it the table is shown as it is, ie a table visual.
We have many on load default filters being applied to the embedded Report in the application using the JS API's which drastically reduces the no. of rows being returned.

These filters are user editable and on the odd chance all the filters are removed by the user, we get an error : "The resultset of a query to external data source has exceeded the maximum allowed size of '1000000' rows".
I Tried by keeping an TOP N visual level filter for the table alone, but it didn't work. This cannot be done at SQL side as the KPI's at the top also refer this table and is also affected by all the filters in the application.

Anyway to overcome this?. Can we take advantage of Premium Capacity.

1 ACCEPTED SOLUTION

Hi @Anonymous ,

 

v-lionel-msft_0-1597125923876.png

"There's a fixed limit of 1 million rows placed on the number of rows that can be returned in any single query to the underlying source."

Try to optimize this query, such as using filters, slicers, etc.

 

Best regards,
Lionel Chen

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 , refer if this can help

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

Hi @amitchandak ,

Thanks for the Answer, I'm going to create a view for only the columns required by PowerBI.
But that still does not fix the issue of the row limit.

Hi @Anonymous ,

 

v-lionel-msft_0-1597125923876.png

"There's a fixed limit of 1 million rows placed on the number of rows that can be returned in any single query to the underlying source."

Try to optimize this query, such as using filters, slicers, etc.

 

Best regards,
Lionel Chen

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.