<?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 Re: Incremental refresh support for a non-folding data source in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Incremental-refresh-support-for-a-non-folding-data-source/m-p/3064917#M41066</link>
    <description>&lt;P&gt;What you are doing is fine. By putting RangeStart and RangeEnd in the query, you are manually "folding".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Pat&lt;/P&gt;</description>
    <pubDate>Mon, 06 Feb 2023 23:40:42 GMT</pubDate>
    <dc:creator>ppm1</dc:creator>
    <dc:date>2023-02-06T23:40:42Z</dc:date>
    <item>
      <title>Incremental refresh support for a non-folding data source</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Incremental-refresh-support-for-a-non-folding-data-source/m-p/3064186#M41063</link>
      <description>&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;A warning message in Power BI Desktop says "It is not recommended to use incremental refresh with non-foldable queries."&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;STRONG&gt;However, incremental refresh for a non-folding data source actually does seem to work. I'm wondering what the actual limitations are then for non-folding data sources?&lt;/STRONG&gt;&lt;DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;For example, if I have a data source that accepts start/end dates in the query string, and I simply directly substitute in those start/end parameters into the string:&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;data = MyDataSource("[...], dates=range(" &amp;amp; RangeStart &amp;amp; "," &amp;amp; RangeEnd &amp;amp; ")")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;I can get it to only query for the past month upon subsequent refreshes after querying for six months of historical data the first time.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;Even if I add some kind of simple transformation afterwards such as SelectRows, it still doesn't seem to break incremental refresh.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;Cases like this seem to suit our needs just fine.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;The &lt;A href="https://learn.microsoft.com/en-us/power-bi/connect-data/incremental-refresh-overview" target="_self"&gt;documentation&lt;/A&gt; warns:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV class="lia-indent-padding-left-30px"&gt;&lt;SPAN&gt;If it’s a pure import mode policy without real-time data, the query mashup engine might compensate and apply the filter locally, which requires retrieving all rows for the table from the data source.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;STRONG&gt;But would this pitfall only apply if I try to apply&lt;/STRONG&gt; &lt;EM&gt;SelectRows(..., each [&lt;/EM&gt;&lt;/SPAN&gt;&lt;EM&gt;start_data] &amp;gt;= RangeStart and [end_date&lt;/EM&gt;&lt;SPAN&gt;&lt;EM&gt;] &amp;lt; RangeEnd)&lt;/EM&gt; to do the date range filtering instead of the direct string substitution above? Or are there other things that can go wrong with non-folding data sources with incremental refresh?&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 06 Feb 2023 15:39:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Incremental-refresh-support-for-a-non-folding-data-source/m-p/3064186#M41063</guid>
      <dc:creator>xli629b</dc:creator>
      <dc:date>2023-02-06T15:39:21Z</dc:date>
    </item>
    <item>
      <title>Re: Incremental refresh support for a non-folding data source</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Incremental-refresh-support-for-a-non-folding-data-source/m-p/3064917#M41066</link>
      <description>&lt;P&gt;What you are doing is fine. By putting RangeStart and RangeEnd in the query, you are manually "folding".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Pat&lt;/P&gt;</description>
      <pubDate>Mon, 06 Feb 2023 23:40:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Incremental-refresh-support-for-a-non-folding-data-source/m-p/3064917#M41066</guid>
      <dc:creator>ppm1</dc:creator>
      <dc:date>2023-02-06T23:40:42Z</dc:date>
    </item>
  </channel>
</rss>

