Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
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
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.
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
Proud to be a Super User!
Yes I am on premium capacity and I tried publishing in services that too is not working.
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 63 | |
| 55 | |
| 42 | |
| 41 | |
| 23 |
| User | Count |
|---|---|
| 165 | |
| 132 | |
| 118 | |
| 79 | |
| 53 |