<?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: Help Trying to use RelativePath to update published Power BI Report. in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-Trying-to-use-RelativePath-to-update-published-Power-BI/m-p/2854873#M91716</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="450251" data-lia-user-login="rsderby68" class="lia-mention lia-mention-user"&gt;rsderby68&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Please refer to the document to see if it helps you.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/rest/api/power-bi/reports/update-report-content" target="_blank"&gt;Reports - Update Report Content - REST API (Power BI Power BI REST APIs) | Microsoft Learn&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hvae also found a similar post, please refer to it to see if it helps you.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.powerbi.com/t5/Service/Help-using-RelativePath-with-Web-Contents-to-use-schedule/m-p/1140045" target="_blank"&gt;Help using RelativePath with Web.Contents to use s... - Microsoft Power BI Community&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards&lt;/P&gt;
&lt;P&gt;Community Support Team _ Polly&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 21 Oct 2022 04:58:02 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2022-10-21T04:58:02Z</dc:date>
    <item>
      <title>Help Trying to use RelativePath to update published Power BI Report.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-Trying-to-use-RelativePath-to-update-published-Power-BI/m-p/2854061#M91645</link>
      <description>&lt;P&gt;Hello, I have a published Power BI report that pulls data from a Web/API.&amp;nbsp; Following all kinds of help videos I set it up get paginated results from the API by creating a page function and then a List.Generate code (see below).&amp;nbsp; However I just found out that my published report will not schedule update because it is pulling from an API/web.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to figure out how to get this report to update/schedule refresh.&amp;nbsp; From what I have read, this would require changing my orginal function (below) to use something called RelativePath, which I don't fully understand.&amp;nbsp; I followed the instructions I read, but the updated function (also, below) when ran with the list.generate started creating new functions and got stuck trying to pull from the API.&amp;nbsp; Something is wrong.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could someone help me rewrite this to properly use relativepath so I can update my awesome published report?&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;List Generate (for paginated results)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;= List.Generate(()=&amp;gt;&lt;/P&gt;&lt;P&gt;[Result = try fCustomers(1) otherwise null, Page=1],&lt;/P&gt;&lt;P&gt;each [Result]&amp;lt;&amp;gt;null,&lt;/P&gt;&lt;P&gt;each [Result = try fCustomers([Page]+1) otherwise null, Page=[Page]+1],&lt;/P&gt;&lt;P&gt;each [Result])&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Original Function&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;= (Page as number)=&amp;gt;&lt;/P&gt;&lt;P&gt;let&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Source = Json.Document(Web.Contents("&lt;A href="https://api.vhx.tv/customers/?page=" target="_blank" rel="noopener"&gt;https://api.vhx.tv/customers/?page=&lt;/A&gt;"&amp;amp;Number.ToText(Page))),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; _embedded = Source[_embedded],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; customers = _embedded[customers]&lt;/P&gt;&lt;P&gt;in&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; customers&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;RelativePath Function&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;= (Page as number)=&amp;gt;&lt;/P&gt;&lt;P&gt;let&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Source =&lt;/P&gt;&lt;P&gt;Json.Document(Web.Contents("&lt;A href="https://api.vhx.tv/customers/" target="_blank" rel="noopener"&gt;https://api.vhx.tv/customers/&lt;/A&gt;",&lt;/P&gt;&lt;P&gt;[RelativePath="?",&lt;/P&gt;&lt;P&gt;Query= [&lt;/P&gt;&lt;P&gt;Page="?&amp;amp;Number.ToText(Page)"]])),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; _embedded = Source[_embedded],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; customers = _embedded[customers]&lt;/P&gt;&lt;P&gt;in&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; customers&lt;/P&gt;</description>
      <pubDate>Thu, 20 Oct 2022 15:44:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-Trying-to-use-RelativePath-to-update-published-Power-BI/m-p/2854061#M91645</guid>
      <dc:creator>rsderby68</dc:creator>
      <dc:date>2022-10-20T15:44:55Z</dc:date>
    </item>
    <item>
      <title>Re: Help Trying to use RelativePath to update published Power BI Report.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-Trying-to-use-RelativePath-to-update-published-Power-BI/m-p/2854873#M91716</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="450251" data-lia-user-login="rsderby68" class="lia-mention lia-mention-user"&gt;rsderby68&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Please refer to the document to see if it helps you.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/rest/api/power-bi/reports/update-report-content" target="_blank"&gt;Reports - Update Report Content - REST API (Power BI Power BI REST APIs) | Microsoft Learn&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hvae also found a similar post, please refer to it to see if it helps you.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.powerbi.com/t5/Service/Help-using-RelativePath-with-Web-Contents-to-use-schedule/m-p/1140045" target="_blank"&gt;Help using RelativePath with Web.Contents to use s... - Microsoft Power BI Community&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards&lt;/P&gt;
&lt;P&gt;Community Support Team _ Polly&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Oct 2022 04:58:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-Trying-to-use-RelativePath-to-update-published-Power-BI/m-p/2854873#M91716</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-10-21T04:58:02Z</dc:date>
    </item>
    <item>
      <title>Re: Help Trying to use RelativePath to update published Power BI Report.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-Trying-to-use-RelativePath-to-update-published-Power-BI/m-p/2890053#M93795</link>
      <description>&lt;P&gt;I figured it out finally.&amp;nbsp; You have to play around with RelativePath and there seems to be a lot of variance in how it is used.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Nov 2022 17:52:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-Trying-to-use-RelativePath-to-update-published-Power-BI/m-p/2890053#M93795</guid>
      <dc:creator>rsderby68</dc:creator>
      <dc:date>2022-11-07T17:52:36Z</dc:date>
    </item>
  </channel>
</rss>

