<?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: List the value for Max Date? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/List-the-value-for-Max-Date/m-p/296322#M55750</link>
    <description>Sorry my bad too late here.&lt;BR /&gt;&lt;BR /&gt;Median on Max date - median on min date</description>
    <pubDate>Tue, 01 Sep 2020 03:01:57 GMT</pubDate>
    <dc:creator>UberBock</dc:creator>
    <dc:date>2020-09-01T03:01:57Z</dc:date>
    <item>
      <title>List the value for Max Date?</title>
      <link>https://community.jmp.com/t5/Discussions/List-the-value-for-Max-Date/m-p/296248#M55742</link>
      <description>&lt;P&gt;I have a data table that has a date column, median_resultval column and&amp;nbsp;reagentMLot_sublot .&amp;nbsp; What I would like is that for the Max(Date) what is the value by reagentMLot_sublot.&amp;nbsp; &amp;nbsp;So for each reagentMLot_sublot I would like to list the median_result value for the Max Date and the median_result for the min date.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So if on the min day the median value is 0.1 and on the max day it is 0.2 I would like columns that list that.&amp;nbsp; Issue is that maybe on a date between the min and max it was 0.4.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried using the Col Max (median_resultval,&amp;nbsp;reagentMLot_sublot, Col Max(date)) and that didn't work (for the max column).&amp;nbsp; The other column it would be Col Min (median_result, reagentMLot_sublot, Col Min(date)).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2023 23:36:32 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/List-the-value-for-Max-Date/m-p/296248#M55742</guid>
      <dc:creator>UberBock</dc:creator>
      <dc:date>2023-06-09T23:36:32Z</dc:date>
    </item>
    <item>
      <title>Re: List the value for Max Date?</title>
      <link>https://community.jmp.com/t5/Discussions/List-the-value-for-Max-Date/m-p/296276#M55743</link>
      <description>&lt;P&gt;This little script will give you a data table with all the min and max date rows with their values of median_resultval&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;names default to here(1);
dt=current data table();

// Sort the data by reagentMLot_sublot and Date
dtSort = dt &amp;lt;&amp;lt; sort(by(:reagentMLot_sublot, :Date),order(ascending,ascending));
dtSort &amp;lt;&amp;lt; clear rowstates;

// Loop through the data finding all rows that are not the minimum date or the maximum date
// and delete them
// Row 1 will always be a minimum date, so start with row 2
For( i=2,i&amp;lt;=NRows(dtSort) - 1,i++,
	If( dtSort:reagentMLot_sublot[i] == dtSort:reagentMLot_sublot[i-1] &amp;amp;
		dtSort:reagentMLot_sublot[i] == dtSort:reagentMLot_sublot[i+1],
		Row State( i ) = Selected State( 1 );
	)
);

dtSort &amp;lt;&amp;lt; delete rows;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;You should be able to take it from there, and display it in the form you want it to be displayed.&lt;/P&gt;</description>
      <pubDate>Tue, 01 Sep 2020 01:36:24 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/List-the-value-for-Max-Date/m-p/296276#M55743</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2020-09-01T01:36:24Z</dc:date>
    </item>
    <item>
      <title>Re: List the value for Max Date?</title>
      <link>https://community.jmp.com/t5/Discussions/List-the-value-for-Max-Date/m-p/296295#M55744</link>
      <description>&lt;P&gt;txnelson..you are amazing.&amp;nbsp; Here is an example jmp file with what I was trying to do.&amp;nbsp; The much larger table will have 100k more rows so I want to be able to calculate the median range by reagentkit_id.&amp;nbsp; I am looking for an effect where the result val increases over time.&amp;nbsp; By subtracting the min date value from the max date value it will mitigate issues were in data between those dates there may be higher values. In essence screen a large data set for instances where the range (max date data value - min date data values in over certain value).&amp;nbsp; In SQL I can get the min and max calculated for each date but it appears that SQL doesn't allow a max value for max date determination.&amp;nbsp; I had hoped that JMP would.&amp;nbsp; But that doesn't seem to be the case.&lt;/P&gt;</description>
      <pubDate>Tue, 01 Sep 2020 02:14:10 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/List-the-value-for-Max-Date/m-p/296295#M55744</guid>
      <dc:creator>UberBock</dc:creator>
      <dc:date>2020-09-01T02:14:10Z</dc:date>
    </item>
    <item>
      <title>Re: List the value for Max Date?</title>
      <link>https://community.jmp.com/t5/Discussions/List-the-value-for-Max-Date/m-p/296316#M55745</link>
      <description>&lt;P&gt;I'm sure I don't understand exactly what you're looking for. It might help to see the result you'd like for the table you posted.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, you might find the &lt;A href="https://www.jmp.com/support/help/en/15.1/index.shtml#page/jmp/build-the-sql-query.shtml" target="_self"&gt;JMP Query Builder&lt;/A&gt; useful. It does have some of the SQL aggregation functions you may be looking for.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2020-08-31_22-28-57.092.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/26535iF7727DAB943265AA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="2020-08-31_22-28-57.092.png" alt="2020-08-31_22-28-57.092.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt; &lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2020-08-31_22-27-45.162.png" style="width: 746px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/26536i3843F11E26AF3035/image-dimensions/746x318?v=v2" width="746" height="318" role="button" title="2020-08-31_22-27-45.162.png" alt="2020-08-31_22-27-45.162.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Tue, 01 Sep 2020 02:31:19 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/List-the-value-for-Max-Date/m-p/296316#M55745</guid>
      <dc:creator>Jeff_Perkinson</dc:creator>
      <dc:date>2020-09-01T02:31:19Z</dc:date>
    </item>
    <item>
      <title>Re: List the value for Max Date?</title>
      <link>https://community.jmp.com/t5/Discussions/List-the-value-for-Max-Date/m-p/296318#M55746</link>
      <description>&lt;P&gt;Was your last entry intended to just be a comment?&amp;nbsp; I do not see any request or question?&lt;/P&gt;</description>
      <pubDate>Tue, 01 Sep 2020 02:37:56 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/List-the-value-for-Max-Date/m-p/296318#M55746</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2020-09-01T02:37:56Z</dc:date>
    </item>
    <item>
      <title>Re: List the value for Max Date?</title>
      <link>https://community.jmp.com/t5/Discussions/List-the-value-for-Max-Date/m-p/296319#M55747</link>
      <description>&lt;P&gt;Sorry.&lt;/P&gt;&lt;P&gt;It was a question in that can JMP, through the use of a column formula, give the col max of a value by the column max of another.&lt;/P&gt;</description>
      <pubDate>Tue, 01 Sep 2020 02:42:53 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/List-the-value-for-Max-Date/m-p/296319#M55747</guid>
      <dc:creator>UberBock</dc:creator>
      <dc:date>2020-09-01T02:42:53Z</dc:date>
    </item>
    <item>
      <title>Re: List the value for Max Date?</title>
      <link>https://community.jmp.com/t5/Discussions/List-the-value-for-Max-Date/m-p/296320#M55748</link>
      <description>I would like to calculate the range of the median by that value at the max date - the value at the min date.&lt;BR /&gt;&lt;BR /&gt;So in the example the Median range would be 0.10524115 - 0.10920177 (median on min date - median on max date) and not 0.23648086-0.09078947 (median max - median min).&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 01 Sep 2020 03:00:35 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/List-the-value-for-Max-Date/m-p/296320#M55748</guid>
      <dc:creator>UberBock</dc:creator>
      <dc:date>2020-09-01T03:00:35Z</dc:date>
    </item>
    <item>
      <title>Re: List the value for Max Date?</title>
      <link>https://community.jmp.com/t5/Discussions/List-the-value-for-Max-Date/m-p/296321#M55749</link>
      <description>&lt;P&gt;A JMP formula is just a specialized piece of JSL.&amp;nbsp; So almost anything that can be done in JSL, can be done in a formula, by one way or another.&lt;/P&gt;</description>
      <pubDate>Tue, 01 Sep 2020 03:01:17 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/List-the-value-for-Max-Date/m-p/296321#M55749</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2020-09-01T03:01:17Z</dc:date>
    </item>
    <item>
      <title>Re: List the value for Max Date?</title>
      <link>https://community.jmp.com/t5/Discussions/List-the-value-for-Max-Date/m-p/296322#M55750</link>
      <description>Sorry my bad too late here.&lt;BR /&gt;&lt;BR /&gt;Median on Max date - median on min date</description>
      <pubDate>Tue, 01 Sep 2020 03:01:57 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/List-the-value-for-Max-Date/m-p/296322#M55750</guid>
      <dc:creator>UberBock</dc:creator>
      <dc:date>2020-09-01T03:01:57Z</dc:date>
    </item>
    <item>
      <title>Re: List the value for Max Date?</title>
      <link>https://community.jmp.com/t5/Discussions/List-the-value-for-Max-Date/m-p/296323#M55751</link>
      <description>&lt;P&gt;yes&lt;/P&gt;</description>
      <pubDate>Tue, 01 Sep 2020 03:03:15 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/List-the-value-for-Max-Date/m-p/296323#M55751</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2020-09-01T03:03:15Z</dc:date>
    </item>
  </channel>
</rss>

