<?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: Compare multiple rows to get the most recent version in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Compare-multiple-rows-to-get-the-most-recent-version/m-p/2628750#M76811</link>
    <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt; , Please find the attached solution&lt;/P&gt;
&lt;P&gt;Refer to the table with measure Last Status Complete&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 09 Jul 2022 10:28:10 GMT</pubDate>
    <dc:creator>amitchandak</dc:creator>
    <dc:date>2022-07-09T10:28:10Z</dc:date>
    <item>
      <title>Compare multiple rows to get the most recent version</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Compare-multiple-rows-to-get-the-most-recent-version/m-p/2628281#M76772</link>
      <description>&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a dateset containing ongoing projects for my department. I'm attempting to use Power Automate's "Run a query against a dataset" to automatical generate a list of projects that meet certain conditions. The structure of the dataset is giving me trouble and making it hard for me to write the necessary query.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Each project is assigned an ID and version number. The ID doesn't change but as the project goes through revisions, a new entry will be made in the dataset with an incremented version number. The Version number starts at 1. For each project, I am only concerned with the entry with the highest version number.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example, if a project with ID 123 has gone through two revisions, there will be three entries with ID 123, each with&lt;BR /&gt;incrementing version numbers. I would only be concerned with submission 3 and if it meets my conditions.&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;STRONG&gt;ID&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;Version&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;Status&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;123&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;Under Review&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;123&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;Under Review&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;123&lt;/TD&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;Completed&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;456&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;Under Review&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;456&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;Under Review&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;To give another example based on this table, if I wanted to get check if the latest version of any projects are still under review, I would expect to only get back the row for project 456, version 2.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've been researching on how to do comparisons between multiple rows but I only feel more confused. Any help would be greatly appreciated.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Jul 2022 17:53:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Compare-multiple-rows-to-get-the-most-recent-version/m-p/2628281#M76772</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-07-08T17:53:28Z</dc:date>
    </item>
    <item>
      <title>Re: Compare multiple rows to get the most recent version</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Compare-multiple-rows-to-get-the-most-recent-version/m-p/2628750#M76811</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt; , Please find the attached solution&lt;/P&gt;
&lt;P&gt;Refer to the table with measure Last Status Complete&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 09 Jul 2022 10:28:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Compare-multiple-rows-to-get-the-most-recent-version/m-p/2628750#M76811</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2022-07-09T10:28:10Z</dc:date>
    </item>
  </channel>
</rss>

