<?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 Automate Run Query Against a Dataset Syntax? in Power Query</title>
    <link>https://community.fabric.microsoft.com/t5/Power-Query/Power-Automate-Run-Query-Against-a-Dataset-Syntax/m-p/2786935#M86471</link>
    <description>&lt;P&gt;Thank you very much for your reply! I realized after doing a bit more reading that Power Automate was looking for DAX and not M. I had tried some DAX previously, but I was unfamiliar with the EVALUATE command and none of my DAX attempts included an EVALUATE command.&lt;/P&gt;</description>
    <pubDate>Thu, 22 Sep 2022 12:42:16 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2022-09-22T12:42:16Z</dc:date>
    <item>
      <title>Power Automate Run Query Against a Dataset Syntax?</title>
      <link>https://community.fabric.microsoft.com/t5/Power-Query/Power-Automate-Run-Query-Against-a-Dataset-Syntax/m-p/2784336#M86379</link>
      <description>&lt;P&gt;I am trying to get Power Automate to generate an output from a query against a Power BI dataset. With a test dataset containing a table named StaffingRequest,&amp;nbsp;I have tried:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Table.SelectRows(StaffingRequest, each [CC_Check_Firm_Offer_Due] = "Firm offer overdue")&lt;/LI-CODE&gt;&lt;P&gt;and also&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;EVALUATE Table.SelectRows(StaffingRequest, each [CC_Check_Firm_Offer_Due] = "Firm offer overdue")&lt;/LI-CODE&gt;&lt;P&gt;I keep getting error messages like:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{"error":{"code":"DatasetExecuteQueriesError","pbi.error":{"code":"DatasetExecuteQueriesError","parameters":{},"details":[{"code":"DetailsMessage","detail":{"type":1,"value":"Query (1, 10) The syntax for 'Table' is incorrect. (EVALUATE Table.SelectRows(StaffingRequest, each [CC_Check_Firm_Offer_Due] = \"Firm offer overdue\")\n)."}},{"code":"AnalysisServicesErrorCode","detail":{"type":1,"value":"3238920194"}}]}}}&lt;/LI-CODE&gt;&lt;P&gt;I know the syntax for the Table.SelectRows function is correct as I have tested it in Power BI using the last applied step in place of the table name, and it works fine:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;let
    Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45WcsssylXIT0tLLVLIL0stSilNVYrVwS4cCwA=", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [CC_Check_Firm_Offer_Due = _t]),
    #"Changed Type" = Table.TransformColumnTypes(Source,{{"CC_Check_Firm_Offer_Due", type text}}),
    #"SelectRows" = Table.SelectRows(#"Changed Type", each [CC_Check_Firm_Offer_Due] = "Firm offer overdue")
in
    #"SelectRows"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What is missing???&lt;/P&gt;</description>
      <pubDate>Wed, 21 Sep 2022 14:45:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Power-Query/Power-Automate-Run-Query-Against-a-Dataset-Syntax/m-p/2784336#M86379</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-09-21T14:45:44Z</dc:date>
    </item>
    <item>
      <title>Re: Power Automate Run Query Against a Dataset Syntax?</title>
      <link>https://community.fabric.microsoft.com/t5/Power-Query/Power-Automate-Run-Query-Against-a-Dataset-Syntax/m-p/2786223#M86440</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Where did you execute this query? Table.SelectRows is a Power Query function which should be used in Power Query Editor or Dataflows in the service. The language used in Power Query is called M language. While EVALUATE is often used to evaluate a DAX expression. DAX is a totally different language from M.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you want to execute a DAX query against a Power BI dataset and export data to a file, you can refer to Curbal's videos as below:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.youtube.com/watch?v=WsbIXJDhC_o" target="_blank" rel="noopener"&gt;Export from Power BI to Excel up to &lt;span class="lia-unicode-emoji" title=":fire:"&gt;🔥&lt;/span&gt;100k rows &lt;span class="lia-unicode-emoji" title=":fire:"&gt;🔥&lt;/span&gt;| Run a query against a dataset&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.youtube.com/watch?v=wy1BE1TJ_jc" target="_blank" rel="noopener"&gt;Automatic exports of Power BI data &lt;span class="lia-unicode-emoji" title=":robot_face:"&gt;🤖&lt;/span&gt; | Run a query against a dataset&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you want to use Power Automate to export data without executing a query, you can refer to the following videos:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.youtube.com/watch?v=BsXZUaarFWM" target="_blank" rel="noopener"&gt;Power BI export to excel and csv with Power Automate&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.youtube.com/watch?v=sd3YCjN8Co4" target="_blank" rel="noopener"&gt;How to Export filtered data to Excel from Power BI button using Power Automate?&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Community Support Team _ Jing&lt;BR /&gt;If this post helps, please Accept it as Solution to help other members find it.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Sep 2022 08:19:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Power-Query/Power-Automate-Run-Query-Against-a-Dataset-Syntax/m-p/2786223#M86440</guid>
      <dc:creator>v-jingzhang</dc:creator>
      <dc:date>2022-09-22T08:19:41Z</dc:date>
    </item>
    <item>
      <title>Re: Power Automate Run Query Against a Dataset Syntax?</title>
      <link>https://community.fabric.microsoft.com/t5/Power-Query/Power-Automate-Run-Query-Against-a-Dataset-Syntax/m-p/2786935#M86471</link>
      <description>&lt;P&gt;Thank you very much for your reply! I realized after doing a bit more reading that Power Automate was looking for DAX and not M. I had tried some DAX previously, but I was unfamiliar with the EVALUATE command and none of my DAX attempts included an EVALUATE command.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Sep 2022 12:42:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Power-Query/Power-Automate-Run-Query-Against-a-Dataset-Syntax/m-p/2786935#M86471</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-09-22T12:42:16Z</dc:date>
    </item>
    <item>
      <title>Re: Power Automate Run Query Against a Dataset Syntax?</title>
      <link>https://community.fabric.microsoft.com/t5/Power-Query/Power-Automate-Run-Query-Against-a-Dataset-Syntax/m-p/2835065#M88053</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;,&amp;nbsp;I'm trying to do something similar. Would you mind posting your code below to give me some guidance?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Tue, 11 Oct 2022 21:26:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Power-Query/Power-Automate-Run-Query-Against-a-Dataset-Syntax/m-p/2835065#M88053</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-10-11T21:26:47Z</dc:date>
    </item>
    <item>
      <title>Re: Power Automate Run Query Against a Dataset Syntax?</title>
      <link>https://community.fabric.microsoft.com/t5/Power-Query/Power-Automate-Run-Query-Against-a-Dataset-Syntax/m-p/2837179#M88122</link>
      <description>&lt;P&gt;Here is what I ended up using:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;EVALUATE FILTER('Staffing Request', [DAX_Check_Firm_Offer_Due]="Firm Offer Overdue")&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 12 Oct 2022 14:31:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Power-Query/Power-Automate-Run-Query-Against-a-Dataset-Syntax/m-p/2837179#M88122</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-10-12T14:31:35Z</dc:date>
    </item>
    <item>
      <title>Re: Power Automate Run Query Against a Dataset Syntax?</title>
      <link>https://community.fabric.microsoft.com/t5/Power-Query/Power-Automate-Run-Query-Against-a-Dataset-Syntax/m-p/3241469#M104376</link>
      <description>&lt;P&gt;I know this post is getting old now but I stumbled across it looking for the same thing.&lt;BR /&gt;To quickly and easily generate a dataset query, you can do it from inside Power Bi and copy/paste it into Power Automate, or wherever.&lt;/P&gt;&lt;P&gt;1. In Power BI click on "View" &amp;gt; "Performance Analyzer"&lt;/P&gt;&lt;P&gt;2. Click "Start recording"&lt;/P&gt;&lt;P&gt;3. Refresh your data by clicking "Refresh"&lt;/P&gt;&lt;P&gt;4. Click "Stop recording"&lt;/P&gt;&lt;P&gt;5. You will then have a representation of your data (mine was in a table), so click the "+" next to it then click "Copy query" and paste it wherever you need it. Very fast and most importantly - accurate!&lt;/P&gt;</description>
      <pubDate>Thu, 18 May 2023 04:07:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Power-Query/Power-Automate-Run-Query-Against-a-Dataset-Syntax/m-p/3241469#M104376</guid>
      <dc:creator>GettingStarted</dc:creator>
      <dc:date>2023-05-18T04:07:08Z</dc:date>
    </item>
    <item>
      <title>Re: Power Automate Run Query Against a Dataset Syntax?</title>
      <link>https://community.fabric.microsoft.com/t5/Power-Query/Power-Automate-Run-Query-Against-a-Dataset-Syntax/m-p/3288518#M106081</link>
      <description>&lt;P&gt;Great stuff,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;how do i use this method to export data with all the relevant slicers and filters,&amp;nbsp;&lt;/P&gt;&lt;P&gt;i mean "what is actually selected in the report" and not "fixed in the dax" itself ?&lt;/P&gt;</description>
      <pubDate>Fri, 16 Jun 2023 20:15:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Power-Query/Power-Automate-Run-Query-Against-a-Dataset-Syntax/m-p/3288518#M106081</guid>
      <dc:creator>Red217</dc:creator>
      <dc:date>2023-06-16T20:15:31Z</dc:date>
    </item>
  </channel>
</rss>

