<?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: Select last point in each run in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Select-last-point-in-each-run/m-p/228905#M45402</link>
    <description>Just to add something that I hope is obvious to all......for &lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/5358"&gt;@Mark_Bailey&lt;/a&gt; code to work, the data table needs to be sorted ascending on columns run_id and time</description>
    <pubDate>Thu, 10 Oct 2019 20:16:15 GMT</pubDate>
    <dc:creator>txnelson</dc:creator>
    <dc:date>2019-10-10T20:16:15Z</dc:date>
    <item>
      <title>Select last point in each run</title>
      <link>https://community.jmp.com/t5/Discussions/Select-last-point-in-each-run/m-p/228869#M45397</link>
      <description>&lt;P&gt;Suppose I have columns:&amp;nbsp; run_id, time, distance&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;... and I want to just select the rows with the last time for each run_id.&amp;nbsp; How do I do that?&lt;/P&gt;</description>
      <pubDate>Thu, 10 Oct 2019 18:50:00 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Select-last-point-in-each-run/m-p/228869#M45397</guid>
      <dc:creator>BHarris</dc:creator>
      <dc:date>2019-10-10T18:50:00Z</dc:date>
    </item>
    <item>
      <title>Re: Select last point in each run</title>
      <link>https://community.jmp.com/t5/Discussions/Select-last-point-in-each-run/m-p/228883#M45399</link>
      <description>&lt;P&gt;You can create an indicator column using a formula. Be sure to sort (nested) by run_id and time first. The formula would be a simple Boolean result. Use the Lag() function as such: If( :run_id == Lag( :run_id, -1 ), 0, 1 ). Then you can select the rows where this column equals 1.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Oct 2019 19:46:13 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Select-last-point-in-each-run/m-p/228883#M45399</guid>
      <dc:creator>Mark_Bailey</dc:creator>
      <dc:date>2019-10-10T19:46:13Z</dc:date>
    </item>
    <item>
      <title>Re: Select last point in each run</title>
      <link>https://community.jmp.com/t5/Discussions/Select-last-point-in-each-run/m-p/228904#M45401</link>
      <description>Is this pretty typical in JMP, to create formula columns to look for certain conditions then select based on that?&lt;BR /&gt;I played around for a minute after writing this question and ended up with this formula column: Col Maximum ( :Name( "time(s)" ), :run_id ) - :Name( "time(s)" )&lt;BR /&gt;... then I just click on one of the rows with "0" and then did a "select matching". I was hoping there was an easier way, like making a summary table with max(time) grouped by run_id, then let me select the rows there, but those rows were selecting all of the data from which the max was calculated, not just the rows that held the max value.</description>
      <pubDate>Thu, 10 Oct 2019 20:12:21 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Select-last-point-in-each-run/m-p/228904#M45401</guid>
      <dc:creator>BHarris</dc:creator>
      <dc:date>2019-10-10T20:12:21Z</dc:date>
    </item>
    <item>
      <title>Re: Select last point in each run</title>
      <link>https://community.jmp.com/t5/Discussions/Select-last-point-in-each-run/m-p/228905#M45402</link>
      <description>Just to add something that I hope is obvious to all......for &lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/5358"&gt;@Mark_Bailey&lt;/a&gt; code to work, the data table needs to be sorted ascending on columns run_id and time</description>
      <pubDate>Thu, 10 Oct 2019 20:16:15 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Select-last-point-in-each-run/m-p/228905#M45402</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2019-10-10T20:16:15Z</dc:date>
    </item>
  </channel>
</rss>

