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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
Anonymous
Not applicable

The result set of a query to external data source has exceeded power bi error power bi direct query

I am trying to calculate rank for a dataset connected via direct query. It is giving below error when adding rank measure to the table visuals, else data is loading. 

 

"the result set of a query to external data source has exceeded power bi error power bi direct query"

 

Rank = RANKX(ALLSELECTED(Query2[Value]),CALCULATE(SUM(Query2[sales])))
 
can you please help whta needs to be change to the measure to make it work.
 
 
1 REPLY 1
Anonymous
Not applicable

Hi @Anonymous,

AFAIK, there's a limit of 1 million rows placed on the number of rows that can be returned in any single query to the underlying source when you work on direct query mode.
For this scenario, you may need to optimate the query (e.g. reduce category fields amount)to confirm these aggregated records are less than 1M rows.

Regards,

Xiaoxin Sheng

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 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.