<?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: Error pulling data from the PowerBI API in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Error-pulling-data-from-the-PowerBI-API/m-p/2306715#M34106</link>
    <description>&lt;P&gt;You need to return a table. Your code is missing the EVALUATE statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;NOTE:&amp;nbsp;Power BI has no memory. You cannot append data to a regular dataset. Either use a push dataset, or use incremental refresh on a regular dataset.&lt;/P&gt;</description>
    <pubDate>Fri, 28 Jan 2022 03:42:47 GMT</pubDate>
    <dc:creator>lbendlin</dc:creator>
    <dc:date>2022-01-28T03:42:47Z</dc:date>
    <item>
      <title>Error pulling data from the PowerBI API</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Error-pulling-data-from-the-PowerBI-API/m-p/2303056#M34079</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to schedule a workflow that appends data to my PowerBI dataset, by first taking the max date in the dataset, and then appending the results for every day after that to my dataset.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm currently struggling to read the data in the PowerBI dataset.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've tried following this guide:&lt;/P&gt;&lt;P&gt;&lt;A href="https://powerbi.microsoft.com/en-us/blog/announcing-the-public-preview-of-power-bi-rest-api-support-for-dax-queries/" target="_blank" rel="noopener"&gt;https://powerbi.microsoft.com/en-us/blog/announcing-the-public-preview-of-power-bi-rest-api-support-for-dax-queries/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but that wasn't working for me. What I'm currently trying is this (in PowerShell)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;$requestUrl = "&lt;A href="https://app.powerbi.com/groups/{Workspace" target="_blank" rel="noopener"&gt;https://app.powerbi.com/groups/{Workspace&lt;/A&gt; ID}/datasets/{Dataset ID}/executeQueries"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;$requestBody = @"&lt;BR /&gt;{"queries" : [ {"query" : "MAXX('WaitTimes', 'WaitTimes'[UpdatedDate])"} ] , "serializerSettings" : {"includeNulls": true} }&lt;/P&gt;&lt;P&gt;"@&lt;BR /&gt;Connect-PowerBIServiceAccount&lt;BR /&gt;$result = Invoke-PowerBIRestMethod -Method Post -Url $requestUrl -Body $requestBody&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This code doesn't error, but it is returning a HTML document and not what I need. Does anyone have any advice?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jan 2022 14:14:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Error-pulling-data-from-the-PowerBI-API/m-p/2303056#M34079</guid>
      <dc:creator>Mgrike</dc:creator>
      <dc:date>2022-01-26T14:14:20Z</dc:date>
    </item>
    <item>
      <title>Re: Error pulling data from the PowerBI API</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Error-pulling-data-from-the-PowerBI-API/m-p/2306715#M34106</link>
      <description>&lt;P&gt;You need to return a table. Your code is missing the EVALUATE statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;NOTE:&amp;nbsp;Power BI has no memory. You cannot append data to a regular dataset. Either use a push dataset, or use incremental refresh on a regular dataset.&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jan 2022 03:42:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Error-pulling-data-from-the-PowerBI-API/m-p/2306715#M34106</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2022-01-28T03:42:47Z</dc:date>
    </item>
  </channel>
</rss>

