<?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: OData URL filter based on current Date. in Power Query</title>
    <link>https://community.fabric.microsoft.com/t5/Power-Query/OData-URL-filter-based-on-current-Date/m-p/3505283#M114591</link>
    <description>&lt;P&gt;The solution in the link was with a merge, but with a Query inside OData.Feed works correctly, here's is the solution&lt;BR /&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 30 Oct 2023 17:49:01 GMT</pubDate>
    <dc:creator>JoseXaviHiguera</dc:creator>
    <dc:date>2023-10-30T17:49:01Z</dc:date>
    <item>
      <title>OData URL filter based on current Date.</title>
      <link>https://community.fabric.microsoft.com/t5/Power-Query/OData-URL-filter-based-on-current-Date/m-p/3502000#M114469</link>
      <description>&lt;P&gt;In the advance editor I had this query:&lt;BR /&gt;&lt;BR /&gt;&lt;EM&gt;let&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;FechaInicioStr = "2023-07-27",&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Source = OData.Feed("&lt;A href="https://xxxx.crm.dynamics.com/api/data/v9.0/audits?$filter=createdon" target="_blank" rel="noopener"&gt;https://xxxx.crm.dynamics.com/api/data/v9.0/audits?$filter=createdon&lt;/A&gt; gt "&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;amp; FechaInicioStr&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;amp; " and action eq 64&amp;amp;$select=_objectid_value,createdon", null, [Implementation="2.0"])&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;in&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Source&lt;/EM&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This runs ok, but i want to make the date change automatically everytime I refresh the data online.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;FechaInicioStr =Date.ToText(Date.AddMonths(Date.From(DateTime.LocalNow()),-3), "yyyy-MM-dd"),&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I made this change, and it runs ok on desktop, but when I programmed it online I get the following error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;This dataset includes a dynamic data source. Since dynamic data sources aren't refreshed in the Power BI service, this dataset won't be refreshed. Learn more: &lt;A href="https://aka.ms/dynamic-data-sources" target="_blank" rel="noopener"&gt;https://aka.ms/dynamic-data-sources&lt;/A&gt;.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone knows how to automate the date to the current date when we update the data online?&lt;/P&gt;</description>
      <pubDate>Fri, 27 Oct 2023 19:29:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Power-Query/OData-URL-filter-based-on-current-Date/m-p/3502000#M114469</guid>
      <dc:creator>JoseXaviHiguera</dc:creator>
      <dc:date>2023-10-27T19:29:32Z</dc:date>
    </item>
    <item>
      <title>Re: OData URL filter based on current Date.</title>
      <link>https://community.fabric.microsoft.com/t5/Power-Query/OData-URL-filter-based-on-current-Date/m-p/3502550#M114485</link>
      <description>&lt;P&gt;Please see this article for how to avoid that error -&amp;nbsp;&lt;A href="https://blog.crossjoin.co.uk/2023/01/08/odata-feed-and-the-dynamic-data-sources-error-in-power-bi/" target="_blank"&gt;OData.Feed And The Dynamic Data Sources Error In Power BI (crossjoin.co.uk)&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;Also, you could switch to Web.Contents and use the RelativePath option (links about that in that article too).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Pat&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 28 Oct 2023 12:12:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Power-Query/OData-URL-filter-based-on-current-Date/m-p/3502550#M114485</guid>
      <dc:creator>ppm1</dc:creator>
      <dc:date>2023-10-28T12:12:50Z</dc:date>
    </item>
    <item>
      <title>Re: OData URL filter based on current Date.</title>
      <link>https://community.fabric.microsoft.com/t5/Power-Query/OData-URL-filter-based-on-current-Date/m-p/3502788#M114493</link>
      <description>&lt;P&gt;The problem was not on the filter, but in looking for a DateTime.LocalNow(), do you happen to have another way of searching for a current date?&lt;/P&gt;</description>
      <pubDate>Sat, 28 Oct 2023 18:12:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Power-Query/OData-URL-filter-based-on-current-Date/m-p/3502788#M114493</guid>
      <dc:creator>JoseXaviHiguera</dc:creator>
      <dc:date>2023-10-28T18:12:09Z</dc:date>
    </item>
    <item>
      <title>Re: OData URL filter based on current Date.</title>
      <link>https://community.fabric.microsoft.com/t5/Power-Query/OData-URL-filter-based-on-current-Date/m-p/3505283#M114591</link>
      <description>&lt;P&gt;The solution in the link was with a merge, but with a Query inside OData.Feed works correctly, here's is the solution&lt;BR /&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Oct 2023 17:49:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Power-Query/OData-URL-filter-based-on-current-Date/m-p/3505283#M114591</guid>
      <dc:creator>JoseXaviHiguera</dc:creator>
      <dc:date>2023-10-30T17:49:01Z</dc:date>
    </item>
  </channel>
</rss>

