<?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: keeping most recent data in column in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/keeping-most-recent-data-in-column/m-p/355689#M60566</link>
    <description>Many thanks, I have a lot more stuff going on in the background, but had to remove it for IP reasons. This was one was bugging me and clogging up my data.&lt;BR /&gt;I will test this out tomorrow.</description>
    <pubDate>Wed, 03 Feb 2021 22:02:16 GMT</pubDate>
    <dc:creator>jearls11</dc:creator>
    <dc:date>2021-02-03T22:02:16Z</dc:date>
    <item>
      <title>keeping most recent data in column</title>
      <link>https://community.jmp.com/t5/Discussions/keeping-most-recent-data-in-column/m-p/355618#M60560</link>
      <description>&lt;P&gt;I want to keep the most recent data and delete the older data.&lt;/P&gt;&lt;P&gt;See image below I want to keep most recent data for highlighted machines and and delete the older row.&lt;/P&gt;&lt;P&gt;example machine 12 I want to delete 2019 data and keep the 2020 data.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jearls11_0-1612381767414.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/29979iAF35DF4A75799B77/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jearls11_0-1612381767414.png" alt="jearls11_0-1612381767414.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2023 22:04:56 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/keeping-most-recent-data-in-column/m-p/355618#M60560</guid>
      <dc:creator>jearls11</dc:creator>
      <dc:date>2023-06-09T22:04:56Z</dc:date>
    </item>
    <item>
      <title>Re: keeping most recent data in column</title>
      <link>https://community.jmp.com/t5/Discussions/keeping-most-recent-data-in-column/m-p/355677#M60565</link>
      <description>&lt;P&gt;You could create a new column with a formula using the 'by' argument in the Col Max() function.&amp;nbsp; In your, case it might look like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Col Max( :LAST_UPDATED_DATE, :Machine ) == :LAST_UPDATED_DATE&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That column would contain either 0 (not latest data) or 1 (latest data).&amp;nbsp; You could then 'delete' those values using any of a number of methods:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Actually delete the rows by right clicking on one of those zeroes and clicking 'select matching cells', then delete the rows.&lt;/LI&gt;
&lt;LI&gt;Instead of deleting the rows, just hide and exclude them so you can get back to them later, select the 'old' rows as you did before, but now right click on a row number and select 'hide and exclude'&lt;/LI&gt;
&lt;LI&gt;Use data filters to hide those rows.&amp;nbsp; In many platforms you can add a local data filter to remove or highlight those rows.&lt;/LI&gt;
&lt;LI&gt;Subset the table with only the latest data.&amp;nbsp; This time select all of the rows with a 1, and then use Subset in the Table menu, and choose selected rows.&amp;nbsp; Now you have one table with just new data, and another with all of the rows&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is what that column would look like:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ih_0-1612386507641.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/29989iCD892F209DD089DC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ih_0-1612386507641.png" alt="ih_0-1612386507641.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And here is a script you could run to re-create this example:&lt;/P&gt;
&lt;LI-SPOILER&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names default to here(1);

dt = Open("$Sample_data/Air Traffic.jmp");

dt &amp;lt;&amp;lt; New Column("Latest Time", Numeric, "Continuous", Format("Best", 12), Formula(Col Max(:Time, :Tail Number) == :Time));&lt;/CODE&gt;&lt;/PRE&gt;
&lt;/LI-SPOILER&gt;</description>
      <pubDate>Wed, 03 Feb 2021 21:12:09 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/keeping-most-recent-data-in-column/m-p/355677#M60565</guid>
      <dc:creator>ih</dc:creator>
      <dc:date>2021-02-03T21:12:09Z</dc:date>
    </item>
    <item>
      <title>Re: keeping most recent data in column</title>
      <link>https://community.jmp.com/t5/Discussions/keeping-most-recent-data-in-column/m-p/355689#M60566</link>
      <description>Many thanks, I have a lot more stuff going on in the background, but had to remove it for IP reasons. This was one was bugging me and clogging up my data.&lt;BR /&gt;I will test this out tomorrow.</description>
      <pubDate>Wed, 03 Feb 2021 22:02:16 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/keeping-most-recent-data-in-column/m-p/355689#M60566</guid>
      <dc:creator>jearls11</dc:creator>
      <dc:date>2021-02-03T22:02:16Z</dc:date>
    </item>
  </channel>
</rss>

