<?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: Incorrect DAX Query Generation for Export in Embedded Power BI Reports in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Incorrect-DAX-Query-Generation-for-Export-in-Embedded-Power-BI/m-p/4917317#M186725</link>
    <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="100342" data-lia-user-login="lbendlin" class="lia-mention lia-mention-user"&gt;lbendlin&lt;/a&gt;&amp;nbsp;for the response.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Currently there is no supported way to extract the DAX query &lt;SPAN&gt;that the report uses.&amp;nbsp;If this capability is critical, please submit feedback through Microsoft’s official feedback channels.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks and regards,&lt;/P&gt;
&lt;P&gt;Anjan Kumar Chippa&lt;/P&gt;</description>
    <pubDate>Tue, 13 Jan 2026 11:35:53 GMT</pubDate>
    <dc:creator>v-achippa</dc:creator>
    <dc:date>2026-01-13T11:35:53Z</dc:date>
    <item>
      <title>Incorrect DAX Query Generation for Export in Embedded Power BI Reports</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Incorrect-DAX-Query-Generation-for-Export-in-Embedded-Power-BI/m-p/4914074#M186655</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm currently working on a use case where I have to export the tabular report data from an embedded Power BI report.&lt;BR /&gt;But currently, we are unable to generate correct DAX queries to export the exact column data that is currently visible in the embedded Power BI report.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;The goal is to export only the columns and rows that are visible to the user in the report view.&lt;BR /&gt;I’d appreciate your feedback on the current methods I’ve tried and would love to hear if there are better alternatives.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Problem Statement&lt;BR /&gt;We need to export only the columns currently visible in an embedded Power BI report, but the generated DAX query does not match the actual report view. It includes extra columns, misses visible ones, and does not correctly capture slicer selections.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Current Approach&lt;/P&gt;&lt;P&gt;-&amp;gt; Using report.getFilters() to get the filter data from the report.&lt;BR /&gt;-&amp;gt; Using visual.getSlicerState() for slicer visuals.&lt;BR /&gt;-&amp;gt; Using extractSchemaFromReport() for the report metadata.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Issues Observed:&lt;/P&gt;&lt;P&gt;1. Slicer Issue: When the Power BI report initially loads, certain slicers are pre-populated with default values. These predefined selections are not being captured in our DAX query during the initial load. However, when users manually change or select slicer values after the report has loaded, the updated selections are correctly captured in the getSlicerState().&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2. Column Mismatch: Using getFilters() and getSlicerState() we're unable to identify the exact columns visible to the user in the grid. Specially the columns which can be dynamically added or removed using the slicers built into the report.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I had couple of questions which are as follows:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-&amp;gt; Is there any better approach to generate a DAX query dynamically using the data recieved from embedded report operations?&lt;BR /&gt;-&amp;gt; How can we identify visible columns to the user in the embedded report.&lt;BR /&gt;-&amp;gt; How to capture slicer and filter values when the report loads as we are not getting this information using embedded report operations.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks in advance,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Aniket&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Jan 2026 16:44:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Incorrect-DAX-Query-Generation-for-Export-in-Embedded-Power-BI/m-p/4914074#M186655</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2026-01-07T16:44:54Z</dc:date>
    </item>
    <item>
      <title>Re: Incorrect DAX Query Generation for Export in Embedded Power BI Reports</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Incorrect-DAX-Query-Generation-for-Export-in-Embedded-Power-BI/m-p/4914345#M186665</link>
      <description>&lt;P&gt;Hi aniket did you find any solution to this so far. Ive faced similar issue in the past.&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jan 2026 04:27:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Incorrect-DAX-Query-Generation-for-Export-in-Embedded-Power-BI/m-p/4914345#M186665</guid>
      <dc:creator>pslabdesh</dc:creator>
      <dc:date>2026-01-08T04:27:34Z</dc:date>
    </item>
    <item>
      <title>Re: Incorrect DAX Query Generation for Export in Embedded Power BI Reports</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Incorrect-DAX-Query-Generation-for-Export-in-Embedded-Power-BI/m-p/4914402#M186668</link>
      <description>&lt;P&gt;There is no solution so far that works for all the reports - specifically those that are complex. so we need the 'best approach' that would work&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jan 2026 06:12:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Incorrect-DAX-Query-Generation-for-Export-in-Embedded-Power-BI/m-p/4914402#M186668</guid>
      <dc:creator>deepa_deshpande</dc:creator>
      <dc:date>2026-01-08T06:12:28Z</dc:date>
    </item>
    <item>
      <title>Re: Incorrect DAX Query Generation for Export in Embedded Power BI Reports</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Incorrect-DAX-Query-Generation-for-Export-in-Embedded-Power-BI/m-p/4914642#M186677</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thank you for reaching out to Microsoft Fabric Community.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Currently power bi Embedded APIs do not expose visual level DAX queries, default slicer states or visible column state, this is a known limitation of Power BI Embedded.&lt;/P&gt;
&lt;P&gt;If the requirement is to export exactly what the user sees, the only supported way is to use power bi’s built in export capabilities. Dynamically reconstructing visual queries using Embedded APIs will be partial and may not match the rendered output.&lt;/P&gt;
&lt;P&gt;If this capability is critical, please consider submitting your detailed feedback and ideas through Microsoft's official feedback channels. Feedback submitted through these channels is frequently reviewed by the product teams and can contribute to meaningful improvements.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.fabric.microsoft.com/t5/Fabric-Ideas/idb-p/fbc_ideas/ideas/search-ideas" target="_blank"&gt;Fabric Ideas - Microsoft Fabric Community&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks and regards,&lt;/P&gt;
&lt;P&gt;Anjan Kumar Chippa&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jan 2026 10:46:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Incorrect-DAX-Query-Generation-for-Export-in-Embedded-Power-BI/m-p/4914642#M186677</guid>
      <dc:creator>v-achippa</dc:creator>
      <dc:date>2026-01-08T10:46:33Z</dc:date>
    </item>
    <item>
      <title>Re: Incorrect DAX Query Generation for Export in Embedded Power BI Reports</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Incorrect-DAX-Query-Generation-for-Export-in-Embedded-Power-BI/m-p/4914667#M186678</link>
      <description>&lt;P&gt;Thanks Anjan Kumar. The default export functionality of Power BI is not good enough for our reports because many of the reports need to export more than 150K rows.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In our organization, Report Builder is not allowed.&lt;/P&gt;&lt;P&gt;Power Automate scripting will not work either: Due to the dynamic selection of the fields (using field parameters), users can select any set of fields. Writing a Power Automate script for such use case is becoming very complex.&amp;nbsp;&lt;/P&gt;&lt;P&gt;so we are looking for the best recommended approach.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any way to extract (not generate) the DAX query that the report uses?&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jan 2026 11:25:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Incorrect-DAX-Query-Generation-for-Export-in-Embedded-Power-BI/m-p/4914667#M186678</guid>
      <dc:creator>deepa_deshpande</dc:creator>
      <dc:date>2026-01-08T11:25:21Z</dc:date>
    </item>
    <item>
      <title>Re: Incorrect DAX Query Generation for Export in Embedded Power BI Reports</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Incorrect-DAX-Query-Generation-for-Export-in-Embedded-Power-BI/m-p/4914801#M186679</link>
      <description>&lt;LI-CODE lang="markup"&gt;Is there any way to extract (not generate) the DAX query that the report uses?&lt;/LI-CODE&gt;
&lt;P&gt;Reports don't use DAX queries. Report visuals do use DAX queries. In a standard environment you can see the DAX query for each visual by using the "Export... Live connection" option and then examining the table query. But this may not be possible in an embedded scenario, and it is a manual process anyway.&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jan 2026 14:40:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Incorrect-DAX-Query-Generation-for-Export-in-Embedded-Power-BI/m-p/4914801#M186679</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2026-01-08T14:40:05Z</dc:date>
    </item>
    <item>
      <title>Re: Incorrect DAX Query Generation for Export in Embedded Power BI Reports</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Incorrect-DAX-Query-Generation-for-Export-in-Embedded-Power-BI/m-p/4917317#M186725</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="100342" data-lia-user-login="lbendlin" class="lia-mention lia-mention-user"&gt;lbendlin&lt;/a&gt;&amp;nbsp;for the response.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Currently there is no supported way to extract the DAX query &lt;SPAN&gt;that the report uses.&amp;nbsp;If this capability is critical, please submit feedback through Microsoft’s official feedback channels.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks and regards,&lt;/P&gt;
&lt;P&gt;Anjan Kumar Chippa&lt;/P&gt;</description>
      <pubDate>Tue, 13 Jan 2026 11:35:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Incorrect-DAX-Query-Generation-for-Export-in-Embedded-Power-BI/m-p/4917317#M186725</guid>
      <dc:creator>v-achippa</dc:creator>
      <dc:date>2026-01-13T11:35:53Z</dc:date>
    </item>
  </channel>
</rss>

