<?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: A question about using the action run a query against a dataset in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/A-question-about-using-the-action-run-a-query-against-a-dataset/m-p/2669549#M79544</link>
    <description>&lt;P&gt;The easiest way do it would be to create a table visual in Power BI which shows the data as you want it, including applying any filters to it. Then use Performance Analyzer to get the DAX code generated for that table. You can examine it in DAX Studio to make sure that is is doing what you want and returning the right results, then you can use the entire query, including the DEFINE clause, in Power Automate.&lt;/P&gt;</description>
    <pubDate>Fri, 29 Jul 2022 12:52:39 GMT</pubDate>
    <dc:creator>johnt75</dc:creator>
    <dc:date>2022-07-29T12:52:39Z</dc:date>
    <item>
      <title>A question about using the action run a query against a dataset</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/A-question-about-using-the-action-run-a-query-against-a-dataset/m-p/2668882#M79506</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't know if my question goes here or in Power Automate's forum because I have a dataset with user data from an app that I am trying to leverage in Power Automate using the action "run a query against a dataset" where DAX can be used to bring data from the dataset.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The dataset has a column "number of hours" and a measure "Total number of hours", which I am trying to filter by status ("Completed", "Under Review", "not submitted") and by each user using said action from Power Automate.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I am trying to accomplish is to get a JSON using the query where I get the name of each user and their total hours filtered by "not submitted" and by the other two statuses.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My first question is: Can it be done?&lt;/P&gt;&lt;P&gt;If my first question is positive, can someone give me some pointers on how can I accomplish that?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your help.&lt;/P&gt;</description>
      <pubDate>Fri, 29 Jul 2022 09:12:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/A-question-about-using-the-action-run-a-query-against-a-dataset/m-p/2668882#M79506</guid>
      <dc:creator>Notialves</dc:creator>
      <dc:date>2022-07-29T09:12:23Z</dc:date>
    </item>
    <item>
      <title>Re: A question about using the action run a query against a dataset</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/A-question-about-using-the-action-run-a-query-against-a-dataset/m-p/2669549#M79544</link>
      <description>&lt;P&gt;The easiest way do it would be to create a table visual in Power BI which shows the data as you want it, including applying any filters to it. Then use Performance Analyzer to get the DAX code generated for that table. You can examine it in DAX Studio to make sure that is is doing what you want and returning the right results, then you can use the entire query, including the DEFINE clause, in Power Automate.&lt;/P&gt;</description>
      <pubDate>Fri, 29 Jul 2022 12:52:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/A-question-about-using-the-action-run-a-query-against-a-dataset/m-p/2669549#M79544</guid>
      <dc:creator>johnt75</dc:creator>
      <dc:date>2022-07-29T12:52:39Z</dc:date>
    </item>
    <item>
      <title>Re: A question about using the action run a query against a dataset</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/A-question-about-using-the-action-run-a-query-against-a-dataset/m-p/2851600#M91428</link>
      <description>&lt;P&gt;Is there a way to use measures? i can run this process well for most of my flows but one datsource has a built in measure which is causing me issues.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Oct 2022 14:29:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/A-question-about-using-the-action-run-a-query-against-a-dataset/m-p/2851600#M91428</guid>
      <dc:creator>George375</dc:creator>
      <dc:date>2022-10-19T14:29:28Z</dc:date>
    </item>
    <item>
      <title>Re: A question about using the action run a query against a dataset</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/A-question-about-using-the-action-run-a-query-against-a-dataset/m-p/2851706#M91441</link>
      <description>&lt;P&gt;If I understand correctly you want to use a query to return the result of a measure. A query has to return a table, but you can wrap the measure inside the table constructor, e.g.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;EVALUATE { [My measure] }&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 19 Oct 2022 15:23:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/A-question-about-using-the-action-run-a-query-against-a-dataset/m-p/2851706#M91441</guid>
      <dc:creator>johnt75</dc:creator>
      <dc:date>2022-10-19T15:23:14Z</dc:date>
    </item>
  </channel>
</rss>

