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
Seek08
Helper I
Helper I

Direct Query 1 Million Limit

Direct Query has 1M limit as we all know. I have a table visual and I know the total number of rows is less than one million, but still I am getting that limit error, I read somewhere that it might be any intermediate table but how to check where it is exceeding 1M rows if this is correct reason or else what could be reason pls suggest

5 REPLIES 5
Seek08
Helper I
Helper I

Hi All,

I have a PBI report in Dual mode. I have a table visual with multiple dimensions and measures with lowest grain level data and that visual is returning more than 1M rows which is limit of PBI. Now can I limit my table visual to return less than 1M rows or top 999999 rows based on any of the KPI so that visual won't throw any error. Model is Star Schema(Dim tables Dual Mode, Fact Table Direct Query).

Add filters on your dim table columns.

Yes that is one of the solution, customer suggested that you apply limit of 100K on your query itself so that it won't impact load. I don't think its practically applicable as direct query are generated in background and we don't have control over it, I want to make sure I am correct before saying that its not possible.

vanessafvg
Super User
Super User

 

as per the microsoft documentation, i would run some diagnostics on the query,  are you using premium? have you tried to publish it to the service and see if it works there?

 

A limit of 1 million rows can return on any query. There's a fixed limit of 1 million rows that can return in any single query to the underlying source. This limit generally has no practical implications, and visuals won't display that many points. However, the limit can occur in cases where Power BI doesn't fully optimize the queries sent, and requests some intermediate result that exceeds the limit.

The limit can also occur while building a visual, on the path to a more reasonable final state. For example, including Customer and TotalSalesQuantity could hit this limit if there are more than 1 million customers, until you apply some filter. The error that returns is: The resultset of a query to external data source has exceeded the maximum allowed size of '1000000' rows.

 

https://learn.microsoft.com/en-us/power-bi/connect-data/desktop-directquery-about#other-implications





If I took the time to answer your question and I came up with a solution, please mark my post as a solution and /or give kudos freely for the effort 🙂 Thank you!

Proud to be a Super User!




Yes I am on premium capacity and I tried publishing in services that too is not working.

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.