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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
Anonymous
Not applicable

undefined

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

2 REPLIES 2
v-chenwuz-msft
Community Support
Community Support

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.

https://community.powerbi.com/t5/Service/Direct-Query-1-million-row-limitation-in-Power-BI-Premium/td-p/847202 

 

 

RANKX:

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.

 

 

amitchandak
Super User
Super User

@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

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

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors
Top Kudoed Authors