<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic The result set of a query to external data source has exceeded power bi error power bi direct query in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/The-result-set-of-a-query-to-external-data-source-has-exceeded/m-p/3392436#M127913</link>
    <description>&lt;P&gt;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.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"the result set of a query to external data source has exceeded power bi error power bi direct query"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Rank =&lt;/SPAN&gt; &lt;SPAN&gt;RANKX&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;ALLSELECTED&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;Query2&lt;/SPAN&gt;&lt;SPAN&gt;[Value]&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;SUM&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;Query2&lt;/SPAN&gt;&lt;SPAN&gt;[sales]&lt;/SPAN&gt;&lt;SPAN&gt;)))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;can you please help whta needs to be change to the measure to make it work.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Tue, 22 Aug 2023 11:52:04 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2023-08-22T11:52:04Z</dc:date>
    <item>
      <title>The result set of a query to external data source has exceeded power bi error power bi direct query</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/The-result-set-of-a-query-to-external-data-source-has-exceeded/m-p/3392436#M127913</link>
      <description>&lt;P&gt;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.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"the result set of a query to external data source has exceeded power bi error power bi direct query"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Rank =&lt;/SPAN&gt; &lt;SPAN&gt;RANKX&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;ALLSELECTED&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;Query2&lt;/SPAN&gt;&lt;SPAN&gt;[Value]&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;SUM&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;Query2&lt;/SPAN&gt;&lt;SPAN&gt;[sales]&lt;/SPAN&gt;&lt;SPAN&gt;)))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;can you please help whta needs to be change to the measure to make it work.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 22 Aug 2023 11:52:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/The-result-set-of-a-query-to-external-data-source-has-exceeded/m-p/3392436#M127913</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-08-22T11:52:04Z</dc:date>
    </item>
    <item>
      <title>Re: The result set of a query to external data source has exceeded power bi error power bi direct query</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/The-result-set-of-a-query-to-external-data-source-has-exceeded/m-p/3396480#M128118</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;,&lt;/P&gt;
&lt;P&gt;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.&lt;BR /&gt;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.&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Xiaoxin Sheng&lt;/P&gt;</description>
      <pubDate>Thu, 24 Aug 2023 07:57:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/The-result-set-of-a-query-to-external-data-source-has-exceeded/m-p/3396480#M128118</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-08-24T07:57:00Z</dc:date>
    </item>
  </channel>
</rss>

