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!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
Hi all,
I connected Amazon redshift in power bi through direct query. When implementing a table visual placing multiple columns on that it show error like - couldn't load the data for this visual . This is because it exceeded the lo imitation of 1000000 records.
How to handle this situation ? Can anyone please help me .
One more question was how to implement rankx as column function in direct query?
Thanks
Ganesh
Hi @Anonymous ,
This is a limitation.
Limit of 1 million rows returned on any query: 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. This limit generally has no practical implications, and visuals themselves aren't going to display that many points. However, the limit can occur in cases where Power BI isn't fully optimizing the queries sent, and there's some intermediate result being requested that exceeds the limit. It can also occur while building a visual, on the path to a more reasonable final state. For example, including Customer and TotalSalesQuantity would hit this limit if there were more than 1 million customers, until some filter were applied.
The 1 million row limit can be exceeded in Premium capacities. For more information, see max intermediate row set count.
For more detail you can refer this article.
Using DirectQuery in Power BI - Power BI | Microsoft Docs
The same problem has been solved in this post, you can refer.
This function is not supported for use in DirectQuery mode when used in calculated columns.
You can change DirectQurey mode to Import model.
Best Regards
Community Support Team _ chenwu zhu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@Anonymous , for that, you can create an aggregated table in import mode or direct query mode
https://docs.microsoft.com/en-us/power-bi/transform-model/aggregations-advanced
For Rank, you should be able to create a measure rank
For Rank Refer these links
https://radacad.com/how-to-use-rankx-in-dax-part-2-of-3-calculated-measures