<?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: Power BI REST API - why does my cloud connector call fail with 'BadRequest'? in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-REST-API-why-does-my-cloud-connector-call-fail-with/m-p/5177151#M65016</link>
    <description>&lt;P&gt;Hi &lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/619967"&gt;@SRJPBI&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Thank you for posting your query in the Microsoft Fabric Community Forum, and thanks to &lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/1550082"&gt;@Kagiyama_yutaka&lt;/a&gt;&amp;nbsp;for sharing valuable insights.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Could you please confirm if your query has been resolved by the provided solutions? This would be helpful for other members who may encounter similar issues.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for being part of the Microsoft Fabric Community.&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 04 May 2026 04:17:08 GMT</pubDate>
    <dc:creator>v-ssriganesh</dc:creator>
    <dc:date>2026-05-04T04:17:08Z</dc:date>
    <item>
      <title>Power BI REST API - why does my cloud connector call fail with 'BadRequest'?</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-REST-API-why-does-my-cloud-connector-call-fail-with/m-p/5176325#M65011</link>
      <description>&lt;P&gt;I have a Power BI report that's been published into the online service. It works fine. I now want to automatically extract data from a matrix within the report.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have created a flow in Power Automate to do this: I copied the DAX behind the matrix from Power BI's Performance Analyzer, and pasted it into a variable within my flow. I then created a task to&amp;nbsp;use the Power BI REST API to run a query against the report's dataset, setting my variable as the query text.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, the task gives me this error when I run it:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Cloud connector call failed with status code 'BadRequest'.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone know why this might be happening and how I can fix it please?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Apr 2026 14:50:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Power-BI-REST-API-why-does-my-cloud-connector-call-fail-with/m-p/5176325#M65011</guid>
      <dc:creator>SRJPBI</dc:creator>
      <dc:date>2026-04-30T14:50:13Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI REST API - why does my cloud connector call fail with 'BadRequest'?</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-REST-API-why-does-my-cloud-connector-call-fail-with/m-p/5176372#M65012</link>
      <description>&lt;P&gt;I think the BadReq comes from the visual DAX dragging calc‑lineage the API can’t read,&lt;BR /&gt;so keep only the one EVALUATE table that returns rows—if it still breaks, run that line in DAX Studio n see what op won’t fold.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Apr 2026 16:08:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Power-BI-REST-API-why-does-my-cloud-connector-call-fail-with/m-p/5176372#M65012</guid>
      <dc:creator>Kagiyama_yutaka</dc:creator>
      <dc:date>2026-04-30T16:08:28Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI REST API - why does my cloud connector call fail with 'BadRequest'?</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-REST-API-why-does-my-cloud-connector-call-fail-with/m-p/5177151#M65016</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/619967"&gt;@SRJPBI&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Thank you for posting your query in the Microsoft Fabric Community Forum, and thanks to &lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/1550082"&gt;@Kagiyama_yutaka&lt;/a&gt;&amp;nbsp;for sharing valuable insights.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Could you please confirm if your query has been resolved by the provided solutions? This would be helpful for other members who may encounter similar issues.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for being part of the Microsoft Fabric Community.&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 04 May 2026 04:17:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Power-BI-REST-API-why-does-my-cloud-connector-call-fail-with/m-p/5177151#M65016</guid>
      <dc:creator>v-ssriganesh</dc:creator>
      <dc:date>2026-05-04T04:17:08Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI REST API - why does my cloud connector call fail with 'BadRequest'?</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-REST-API-why-does-my-cloud-connector-call-fail-with/m-p/5178025#M65035</link>
      <description>&lt;P&gt;This doesn't seem to fix the issue. Here is my original code:&lt;/P&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV class="lia-indent-padding-left-30px"&gt;&lt;FONT size="2" color="#333333"&gt;&lt;EM&gt;// DAX Query&lt;/EM&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV class="lia-indent-padding-left-30px"&gt;&lt;FONT size="2" color="#333333"&gt;&lt;EM&gt;DEFINE&lt;/EM&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV class="lia-indent-padding-left-30px"&gt;&lt;FONT size="2" color="#333333"&gt;&lt;EM&gt;VAR __DS0Core =&amp;nbsp;&lt;/EM&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV class="lia-indent-padding-left-30px"&gt;&lt;FONT size="2" color="#333333"&gt;&lt;EM&gt;SUMMARIZECOLUMNS(&lt;/EM&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV class="lia-indent-padding-left-30px"&gt;&lt;FONT size="2" color="#333333"&gt;&lt;EM&gt;ROLLUPADDISSUBTOTAL('Table'[Col1], "IsGrandTotalRowTotal"),&lt;/EM&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV class="lia-indent-padding-left-30px"&gt;&lt;FONT size="2" color="#333333"&gt;&lt;EM&gt;"SumCol2", CALCULATE(SUM('Table'[Col2])),&lt;/EM&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV class="lia-indent-padding-left-30px"&gt;&lt;FONT size="2" color="#333333"&gt;&lt;EM&gt;"SumCol3", CALCULATE(SUM('Table'[Col3]))&lt;/EM&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV class="lia-indent-padding-left-30px"&gt;&lt;FONT size="2" color="#333333"&gt;&lt;EM&gt;)&lt;/EM&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV class="lia-indent-padding-left-30px"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="lia-indent-padding-left-30px"&gt;&lt;FONT size="2" color="#333333"&gt;&lt;EM&gt;VAR __DS0PrimaryWindowed =&amp;nbsp;&lt;/EM&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV class="lia-indent-padding-left-30px"&gt;&lt;FONT size="2" color="#333333"&gt;&lt;EM&gt;TOPN(502, __DS0Core, [IsGrandTotalRowTotal], 0, 'Table'[Col1], 1)&lt;/EM&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV class="lia-indent-padding-left-30px"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="lia-indent-padding-left-30px"&gt;&lt;FONT size="2" color="#333333"&gt;&lt;EM&gt;EVALUATE&lt;/EM&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV class="lia-indent-padding-left-30px"&gt;&lt;FONT size="2" color="#333333"&gt;&lt;EM&gt;__DS0PrimaryWindowed&lt;/EM&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV class="lia-indent-padding-left-30px"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="lia-indent-padding-left-30px"&gt;&lt;FONT size="2" color="#333333"&gt;&lt;EM&gt;ORDER BY&lt;/EM&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV class="lia-indent-padding-left-30px"&gt;&lt;FONT size="2" color="#333333"&gt;&lt;EM&gt;[IsGrandTotalRowTotal] DESC, 'Table'[Col1]&lt;/EM&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And here is what I changed it to:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="lia-indent-padding-left-30px"&gt;&lt;FONT size="2" color="#333333"&gt;&lt;EM&gt;// DAX Query&lt;/EM&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV class="lia-indent-padding-left-30px"&gt;&lt;FONT size="2" color="#333333"&gt;&lt;EM&gt;EVALUATE&lt;/EM&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV class="lia-indent-padding-left-30px"&gt;&lt;FONT size="2" color="#333333"&gt;&lt;EM&gt;TOPN(502, SUMMARIZECOLUMNS(&lt;/EM&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV class="lia-indent-padding-left-30px"&gt;&lt;FONT size="2" color="#333333"&gt;&lt;EM&gt;ROLLUPADDISSUBTOTAL('Table'[Col1], "IsGrandTotalRowTotal"),&lt;/EM&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV class="lia-indent-padding-left-30px"&gt;&lt;FONT size="2" color="#333333"&gt;&lt;EM&gt;"SumCol2", CALCULATE(SUM('Table'[Col2])),&lt;/EM&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV class="lia-indent-padding-left-30px"&gt;&lt;FONT size="2" color="#333333"&gt;&lt;EM&gt;"SumCol3", CALCULATE(SUM('Table'[Col3]))&lt;/EM&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV class="lia-indent-padding-left-30px"&gt;&lt;FONT size="2" color="#333333"&gt;&lt;EM&gt;), [IsGrandTotalRowTotal], 0, 'Table'[Col1], 1)&lt;/EM&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV class="lia-indent-padding-left-30px"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="lia-indent-padding-left-30px"&gt;&lt;FONT size="2" color="#333333"&gt;&lt;EM&gt;ORDER BY&lt;/EM&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV class="lia-indent-padding-left-30px"&gt;&lt;FONT size="2" color="#333333"&gt;&lt;EM&gt;[IsGrandTotalRowTotal] DESC, 'Table'[Col1]&lt;/EM&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Both versions return the same error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 May 2026 11:37:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Power-BI-REST-API-why-does-my-cloud-connector-call-fail-with/m-p/5178025#M65035</guid>
      <dc:creator>SRJPBI</dc:creator>
      <dc:date>2026-05-05T11:37:07Z</dc:date>
    </item>
  </channel>
</rss>

