<?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: Locate latest max value in list for each day in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Locate-latest-max-value-in-list-for-each-day/m-p/16543#M15072</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Craige for your reply,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately, what you've proposed doesn't quite work for me.&amp;nbsp; I'm creating a list of the max values by day.&amp;nbsp; I will do some additional work with the contents of the list.&amp;nbsp; My issue is that there are certain days that contain multiple instances of the same value.&amp;nbsp; I need to create a list then that has just the latest datetime occurrence of the daily max value, not all of them.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 28 Jan 2016 19:24:54 GMT</pubDate>
    <dc:creator>terapin</dc:creator>
    <dc:date>2016-01-28T19:24:54Z</dc:date>
    <item>
      <title>Locate latest max value in list for each day</title>
      <link>https://community.jmp.com/t5/Discussions/Locate-latest-max-value-in-list-for-each-day/m-p/16541#M15070</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm determining the maximum values for a given day and I'm running into a problem when there are multiple max values for a given day in my list.&amp;nbsp; I can't figure out how to locate and create a new of just the latest max value and its corresponding date time for a given day when more than one max values exist for that day.&amp;nbsp; Any suggestions on how to accomplish this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Clear Log();&lt;/P&gt;&lt;P&gt;Names Default To Here(1);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;dt_growth = New Table( "Growth",&lt;/P&gt;&lt;P&gt;&amp;nbsp; New Column( "Date &amp;amp; Time",&lt;/P&gt;&lt;P&gt;&amp;nbsp; Numeric,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Continuous,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Format( "m/d/y h:m", 12 ),&lt;/P&gt;&lt;P&gt;&amp;nbsp; Input Format( "m/d/y h:m" ),&lt;/P&gt;&lt;P&gt;&amp;nbsp; Set Values(&lt;/P&gt;&lt;P&gt;&amp;nbsp; [3225884400, 3225888000, 3225891600, 3225895200, 3225898800,&lt;/P&gt;&lt;P&gt;&amp;nbsp; 3225902400, 3225906000, 3225909600, 3225913200, 3225916800,&lt;/P&gt;&lt;P&gt;&amp;nbsp; 3225920400, 3225924000, 3225927600, 3225931200, 3225934800,&lt;/P&gt;&lt;P&gt;&amp;nbsp; 3225938400, 3225942000, 3225945600, 3225949200, 3225952800,&lt;/P&gt;&lt;P&gt;&amp;nbsp; 3225956400, 3225960000, 3225963600, 3225967200, 3225970800,&lt;/P&gt;&lt;P&gt;&amp;nbsp; 3225974400, 3225978000, 3225981600, 3225985200, 3225988800,&lt;/P&gt;&lt;P&gt;&amp;nbsp; 3225992400, 3225996000, 3225999600, 3226003200, 3226006800,&lt;/P&gt;&lt;P&gt;&amp;nbsp; 3226010400, 3226014000, 3226017600, 3226021200, 3226024800,&lt;/P&gt;&lt;P&gt;&amp;nbsp; 3226028400, 3226032000, 3226035600, 3226039200, 3226042800,&lt;/P&gt;&lt;P&gt;&amp;nbsp; 3226046400, 3226050000, 3226053600, 3226057200, 3226060800,&lt;/P&gt;&lt;P&gt;&amp;nbsp; 3226064400, 3226068000, 3226071600, 3226075200, 3226078800,&lt;/P&gt;&lt;P&gt;&amp;nbsp; 3226082400, 3226086000, 3226089600, 3226093200, 3226096800,&lt;/P&gt;&lt;P&gt;&amp;nbsp; 3226100400, 3226104000, 3226107600, 3226111200, 3226114800,&lt;/P&gt;&lt;P&gt;&amp;nbsp; 3226118400, 3226122000, 3226125600, 3226129200, 3226132800,&lt;/P&gt;&lt;P&gt;&amp;nbsp; 3226136400, 3226140000, 3226143600, 3226147200, 3226150800,&lt;/P&gt;&lt;P&gt;&amp;nbsp; 3226154400, 3226158000, 3226161600, 3226165200, 3226168800,&lt;/P&gt;&lt;P&gt;&amp;nbsp; 3226172400, 3226176000, 3226179600, 3226183200, 3226186800,&lt;/P&gt;&lt;P&gt;&amp;nbsp; 3226190400, 3226194000, 3226197600, 3226201200, 3226204800,&lt;/P&gt;&lt;P&gt;&amp;nbsp; 3226208400, 3226212000, 3226215600, 3226219200, 3226222800,&lt;/P&gt;&lt;P&gt;&amp;nbsp; 3226226400, 3226230000, 3226233600, 3226237200, 3226240800,&lt;/P&gt;&lt;P&gt;&amp;nbsp; 3226244400, 3226248000, 3226251600, 3226255200, 3226258800,&lt;/P&gt;&lt;P&gt;&amp;nbsp; 3226262400, 3226266000, 3226269600, 3226273200, 3226276800,&lt;/P&gt;&lt;P&gt;&amp;nbsp; 3226280400, 3226284000, 3226287600, 3226291200, 3226294800,&lt;/P&gt;&lt;P&gt;&amp;nbsp; 3226298400, 3226302000, 3226305600, 3226309200, 3226312800,&lt;/P&gt;&lt;P&gt;&amp;nbsp; 3226316400, 3226320000, 3226323600, 3226327200, 3226330800,&lt;/P&gt;&lt;P&gt;&amp;nbsp; 3226334400, 3226338000, 3226341600, 3226345200, 3226348800,&lt;/P&gt;&lt;P&gt;&amp;nbsp; 3226352400, 3226356000, 3226359600, 3226363200, 3226366800,&lt;/P&gt;&lt;P&gt;&amp;nbsp; 3226370400, 3226374000, 3226377600, 3226381200, 3226384800,&lt;/P&gt;&lt;P&gt;&amp;nbsp; 3226388400, 3226392000, 3226395600, 3226399200, 3226402800,&lt;/P&gt;&lt;P&gt;&amp;nbsp; 3226406400, 3226410000, 3226413600, 3226417200, 3226420800,&lt;/P&gt;&lt;P&gt;&amp;nbsp; 3226424400, 3226428000, 3226431600, 3226435200, 3226438800,&lt;/P&gt;&lt;P&gt;&amp;nbsp; 3226442400, 3226446000, 3226449600, 3226453200, 3226456800,&lt;/P&gt;&lt;P&gt;&amp;nbsp; 3226460400, 3226464000, 3226467600, 3226471200, 3226474800,&lt;/P&gt;&lt;P&gt;&amp;nbsp; 3226478400, 3226482000, 3226485600, 3226489200, 3226492800,&lt;/P&gt;&lt;P&gt;&amp;nbsp; 3226496400, 3226500000, 3226503600, 3226507200, 3226510800,&lt;/P&gt;&lt;P&gt;&amp;nbsp; 3226514400, 3226518000, 3226521600, 3226525200, 3226528800,&lt;/P&gt;&lt;P&gt;&amp;nbsp; 3226532400, 3226536000, 3226539600, 3226543200, 3226546800,&lt;/P&gt;&lt;P&gt;&amp;nbsp; 3226550400, 3226554000, 3226557600, 3226561200, 3226564800,&lt;/P&gt;&lt;P&gt;&amp;nbsp; 3226568400, 3226572000, 3226575600, 3226579200, 3226582800,&lt;/P&gt;&lt;P&gt;&amp;nbsp; 3226586400, 3226590000, 3226593600, 3226597200, 3226600800,&lt;/P&gt;&lt;P&gt;&amp;nbsp; 3226604400, 3226608000, 3226611600, 3226615200, 3226618800,&lt;/P&gt;&lt;P&gt;&amp;nbsp; 3226622400, 3226626000, 3226629600, 3226633200, 3226636800,&lt;/P&gt;&lt;P&gt;&amp;nbsp; 3226640400, 3226644000, 3226647600, 3226651200, 3226654800,&lt;/P&gt;&lt;P&gt;&amp;nbsp; 3226658400, 3226662000, 3226665600, 3226669200, 3226672800,&lt;/P&gt;&lt;P&gt;&amp;nbsp; 3226676400, 3226680000, 3226683600, 3226687200, 3226690800,&lt;/P&gt;&lt;P&gt;&amp;nbsp; 3226694400, 3226698000, 3226701600, 3226705200, 3226708800,&lt;/P&gt;&lt;P&gt;&amp;nbsp; 3226712400, 3226716000, 3226719600, 3226723200, 3226726800,&lt;/P&gt;&lt;P&gt;&amp;nbsp; 3226730400, 3226734000, 3226737600, 3226741200, 3226744800,&lt;/P&gt;&lt;P&gt;&amp;nbsp; 3226748400, 3226752000, 3226755600, 3226759200, 3226762800,&lt;/P&gt;&lt;P&gt;&amp;nbsp; 3226766400, 3226770000, 3226773600, 3226777200, 3226780800,&lt;/P&gt;&lt;P&gt;&amp;nbsp; 3226784400, 3226788000, 3226791600, 3226795200, 3226798800,&lt;/P&gt;&lt;P&gt;&amp;nbsp; 3226802400, 3226806000, 3226809600, 3226813200, 3226816800,&lt;/P&gt;&lt;P&gt;&amp;nbsp; 3226820400, 3226824000, 3226827600, 3226831200, 3226834800,&lt;/P&gt;&lt;P&gt;&amp;nbsp; 3226838400, 3226842000, 3226845600, 3226849200, 3226852800,&lt;/P&gt;&lt;P&gt;&amp;nbsp; 3226856400, 3226860000, 3226863600, 3226867200, 3226870800,&lt;/P&gt;&lt;P&gt;&amp;nbsp; 3226874400, 3226878000, 3226881600, 3226885200, 3226888800,&lt;/P&gt;&lt;P&gt;&amp;nbsp; 3226892400, 3226896000, 3226899600, 3226903200, 3226906800]&lt;/P&gt;&lt;P&gt;&amp;nbsp; )&lt;/P&gt;&lt;P&gt;&amp;nbsp; ),&lt;/P&gt;&lt;P&gt;&amp;nbsp; New Column( "Year", Numeric, Continuous, Format( "Best", 8 ), Formula( Year( :Name( "Date &amp;amp; Time" ) ) ), Lock( 1 ) ),&lt;/P&gt;&lt;P&gt;&amp;nbsp; New Column( "Month", Numeric, Continuous, Format( "Best", 8 ), Formula( Month( :Name( "Date &amp;amp; Time" ) ) ), Lock( 1 ) ),&lt;/P&gt;&lt;P&gt;&amp;nbsp; New Column( "Day", Numeric, Continuous, Format( "Best", 8 ), Formula( Day( :Name( "Date &amp;amp; Time" ) ) ), Lock( 1 ) ),&lt;/P&gt;&lt;P&gt;&amp;nbsp; New Column( "Hour", Numeric, Continuous, Format( "Best", 8 ), Formula( Hour( :Name( "Date &amp;amp; Time" ) ) ), Lock( 1 ) ),&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; New Column( "Date", Numeric, Continuous, Format( "m/d/y", 10 ), Formula( Date MDY( :Month, :Day, :Year ) ), Lock( 1 ) ),&lt;/P&gt;&lt;P&gt;&amp;nbsp; New Column( "Growth",&lt;/P&gt;&lt;P&gt;&amp;nbsp; Numeric,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Continuous,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Format( "Fixed Dec", 12, 4 ),&lt;/P&gt;&lt;P&gt;&amp;nbsp; Set Values(&lt;/P&gt;&lt;P&gt;&amp;nbsp; [-0.00100011424000851, -0.000363872799278378, -0.000363871984284188,&lt;/P&gt;&lt;P&gt;&amp;nbsp; -0.00100005824000851, -0.00227235992075627, -0.00418081408649503, -&lt;/P&gt;&lt;P&gt;&amp;nbsp; 0.00545309175689348, -0.00736156445270497, -0.00736136657166755, -&lt;/P&gt;&lt;P&gt;&amp;nbsp; 0.00545294517616856, -0.00672516584616703, -0.00354446026036948, -&lt;/P&gt;&lt;P&gt;&amp;nbsp; 0.00227219704017202, 0.00154456188025604, 0.00726960356524363,&lt;/P&gt;&lt;P&gt;&amp;nbsp; 0.00790566809993933, 0.0129946043300728, 0.0142672814031039,&lt;/P&gt;&lt;P&gt;&amp;nbsp; 0.0142680804082943, 0.0212680506560791, 0.021269003361861,&lt;/P&gt;&lt;P&gt;&amp;nbsp; 0.0219050687116747, 0.0212692891739123, 0.014270349583592,&lt;/P&gt;&lt;P&gt;&amp;nbsp; 0.0161791280461629, 0.0123615072003508, 0.0219050687116747,&lt;/P&gt;&lt;P&gt;&amp;nbsp; 0.0104520647031608, -0.0022725075312535, -0.00418091710202046,&lt;/P&gt;&lt;P&gt;&amp;nbsp; 0.00663394656359483, 0.0123593477559727, 0.0212654783489747,&lt;/P&gt;&lt;P&gt;&amp;nbsp; 0.0288989636199062, 0.0346241368109538, 0.0435298706416388,&lt;/P&gt;&lt;P&gt;&amp;nbsp; 0.0734286369895607, 0.072790864489845, 0.0632482414590739,&lt;/P&gt;&lt;P&gt;&amp;nbsp; 0.063884648195645, 0.0740617924812754, 0.10524374653983,&lt;/P&gt;&lt;P&gt;&amp;nbsp; 0.105238560337556, 0.106520183190921, 0.095705821744203,&lt;/P&gt;&lt;P&gt;&amp;nbsp; 0.0721597475663495, 0.0823432919531381, 0.0829770846230983,&lt;/P&gt;&lt;P&gt;&amp;nbsp; 0.0944282992395635, &lt;SPAN style="font-size: 13.3333px;"&gt;0.106520183190921&lt;/SPAN&gt;, ., ., ., ., ., ., ., ., ., .,&lt;/P&gt;&lt;P&gt;&amp;nbsp; ., ., ., ., ., ., ., ., ., ., ., ., ., ., ., ., ., ., ., ., ., ., .,&lt;/P&gt;&lt;P&gt;&amp;nbsp; ., ., ., ., ., ., ., ., ., ., ., ., ., ., ., ., ., ., ., ., ., ., .,&lt;/P&gt;&lt;P&gt;&amp;nbsp; ., ., ., ., ., ., ., 0.132598446121035, 0.142136100159265,&lt;/P&gt;&lt;P&gt;&amp;nbsp; 0.144047485365236, 0.141510082527217, 0.133243284004832,&lt;/P&gt;&lt;P&gt;&amp;nbsp; 0.136430823506921, 0.129433763704459, ., 0.116070160678918,&lt;/P&gt;&lt;P&gt;&amp;nbsp; 0.115432357842292, 0.117340824227052, 0.114794572105785,&lt;/P&gt;&lt;P&gt;&amp;nbsp; 0.114790201208717, 0.114151689739583, 0.113513458180752,&lt;/P&gt;&lt;P&gt;&amp;nbsp; 0.112872468220974, 0.115423050522635, 0.143405851093052,&lt;/P&gt;&lt;P&gt;&amp;nbsp; 0.138950940416588, 0.140217253219071, 0.144662268859769,&lt;/P&gt;&lt;P&gt;&amp;nbsp; 0.14847441971641, 0.152290783704404, 0.155475963397883,&lt;/P&gt;&lt;P&gt;&amp;nbsp; 0.164426756532424, 0.16760053536469, 0.162514344711853,&lt;/P&gt;&lt;P&gt;&amp;nbsp; 0.159332058795417, &lt;SPAN style="font-size: 13.3333px;"&gt;0.16760053536469&lt;/SPAN&gt;, 0.149160923755755,&lt;/P&gt;&lt;P&gt;&amp;nbsp; 0.137709192270229, 0.130708924366787, 0.123070306637102,&lt;/P&gt;&lt;P&gt;&amp;nbsp; 0.117974687738857, 0.119245809936872, 0.117326106775782,&lt;/P&gt;&lt;P&gt;&amp;nbsp; 0.122413756226772, 0.130047595709665, 0.145948812468612,&lt;/P&gt;&lt;P&gt;&amp;nbsp; 0.150402142613181, ., ., 0.05, 0.04, 0.045, ., ., ., ., ., ., ., ., .,&lt;/P&gt;&lt;P&gt;&amp;nbsp; ., ., ., ., ., ., ., ., ., ., ., ., ., ., ., ., ., ., ., ., ., ., .,&lt;/P&gt;&lt;P&gt;&amp;nbsp; ., ., ., ., ., ., ., ., ., ., ., ., ., ., ., ., ., ., ., ., ., ., .,&lt;/P&gt;&lt;P&gt;&amp;nbsp; ., ., ., ., ., ., ., ., ., ., ., ., ., ., ., ., ., ., ., ., ., ., .,&lt;/P&gt;&lt;P&gt;&amp;nbsp; ., 0.41763939536042, 0.415693459004884, 0.411893026189672,&lt;/P&gt;&lt;P&gt;&amp;nbsp; 0.409996367624642, 0.406806168639344, 0.405541937379636,&lt;/P&gt;&lt;P&gt;&amp;nbsp; 0.403607071498291, 0.409315222566001, 0.409944023628439,&lt;/P&gt;&lt;P&gt;&amp;nbsp; 0.409934840470904, 0.413750645246311, 0.417566432921535,&lt;/P&gt;&lt;P&gt;&amp;nbsp; 0.422655385641797, 0.42965365812232, 0.436654896453155,&lt;/P&gt;&lt;P&gt;&amp;nbsp; 0.44364930329344, 0.45064765414928, 0.457646036355387,&lt;/P&gt;&lt;P&gt;&amp;nbsp; 0.467820889024742, 0.481185887340017, 0.493284494492094,&lt;/P&gt;&lt;P&gt;&amp;nbsp; 0.49456564669957, 0.499026564408861, 0.503492132922427,&lt;/P&gt;&lt;P&gt;&amp;nbsp; 0.50285933023531, 0.506056129447622, 0.506702549723624,&lt;/P&gt;&lt;P&gt;&amp;nbsp; 0.506067464368605, 0.507337632217846, 0.504137348451565,&lt;/P&gt;&lt;P&gt;&amp;nbsp; 0.500946283675119, 0.504757712657227, 0.512386052830777,&lt;/P&gt;&lt;P&gt;&amp;nbsp; 0.520015386838913, 0.529555420635595, 0.539096576517502,&lt;/P&gt;&lt;P&gt;&amp;nbsp; 0.553087055836816, 0.567072203175747, 0.581062055491441,&lt;/P&gt;&lt;P&gt;&amp;nbsp; 0.593783392145494, 0.603324019354862, 0.617957789218505,&lt;/P&gt;&lt;P&gt;&amp;nbsp; 0.680681868813513, 0.640872945402754, 0.656807530753031,&lt;/P&gt;&lt;P&gt;&amp;nbsp; 0.659356671575131, 0.660007636808086, 0.665113592325388]&lt;/P&gt;&lt;P&gt;&amp;nbsp; )&lt;/P&gt;&lt;P&gt;&amp;nbsp; )&lt;/P&gt;&lt;P&gt;);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Wait( 2 );&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Get the highest growth for each day and locate the corresponding datetime&lt;/P&gt;&lt;P&gt;Summarize( growth_date_list = by( dt_growth:Date ), g = Max( dt_growth:Growth ) );&lt;/P&gt;&lt;P&gt;max_growth_list = As List( g );&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;show(growth_date_list);&lt;/P&gt;&lt;P&gt;show(max_growth_list);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//locate rows with max growth, excluding those dates with all missing data&lt;/P&gt;&lt;P&gt;rows = dt_growth &amp;lt;&amp;lt; get rows where(&lt;/P&gt;&lt;P&gt;&amp;nbsp; And(&lt;/P&gt;&lt;P&gt;&amp;nbsp; !Is Missing( :growth ),&lt;/P&gt;&lt;P&gt;&amp;nbsp; Contains( max_growth_list, :Growth ),&lt;/P&gt;&lt;P&gt;&amp;nbsp; Contains( max_growth_list, :Growth ) == Contains( growth_date_list, Format( :Date, "m/d/y" ) )&lt;/P&gt;&lt;P&gt;&amp;nbsp; )&lt;/P&gt;&lt;P&gt;);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// Select only the latest max value for a given day when multiple identical values exist and create new list of just those daily max values and their datetime&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;dt_growth &amp;lt;&amp;lt; Select Rows ( rows );&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jan 2016 17:01:05 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Locate-latest-max-value-in-list-for-each-day/m-p/16541#M15070</guid>
      <dc:creator>terapin</dc:creator>
      <dc:date>2016-01-28T17:01:05Z</dc:date>
    </item>
    <item>
      <title>Re: Locate latest max value in list for each day</title>
      <link>https://community.jmp.com/t5/Discussions/Locate-latest-max-value-in-list-for-each-day/m-p/16542#M15071</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Interesting problem.&amp;nbsp; If I understand it right, try adding these three formula columns; "theRow" will hold the row with the last maximum value.&amp;nbsp; (aRow is not the one you want.)&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; New Column( "maxGrowth",&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Numeric,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Continuous",&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Format( "Best", 12 ),&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Formula( Col Maximum( :Growth, :Date ) )&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ),&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; New Column( "aRow",&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Numeric,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Continuous",&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Format( "Best", 12 ),&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Formula( (:Growth == :maxGrowth) * Row() )&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ),&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; New Column( "theRow",&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Numeric,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Continuous",&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Format( "Best", 12 ),&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Formula( Col Maximum( :aRow, :Date ) )&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; )&lt;/SPAN&gt;&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="10838_pastedImage_2.png" style="width: 1182px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/2651iCF2330E7783C89D7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="10838_pastedImage_2.png" alt="10838_pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then a summary &lt;SPAN style="font-size: 8pt; font-family: 'courier new', courier;"&gt;Data Table( "Growth" ) &amp;lt;&amp;lt; Summary( Group( :theRow ) )&lt;/SPAN&gt;&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="10841_pastedImage_5.png" style="width: 145px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/2652i98440E1F9A760F98/image-size/medium?v=v2&amp;amp;px=400" role="button" title="10841_pastedImage_5.png" alt="10841_pastedImage_5.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Oct 2016 01:42:19 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Locate-latest-max-value-in-list-for-each-day/m-p/16542#M15071</guid>
      <dc:creator>Craige_Hales</dc:creator>
      <dc:date>2016-10-19T01:42:19Z</dc:date>
    </item>
    <item>
      <title>Re: Locate latest max value in list for each day</title>
      <link>https://community.jmp.com/t5/Discussions/Locate-latest-max-value-in-list-for-each-day/m-p/16543#M15072</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Craige for your reply,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately, what you've proposed doesn't quite work for me.&amp;nbsp; I'm creating a list of the max values by day.&amp;nbsp; I will do some additional work with the contents of the list.&amp;nbsp; My issue is that there are certain days that contain multiple instances of the same value.&amp;nbsp; I need to create a list then that has just the latest datetime occurrence of the daily max value, not all of them.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jan 2016 19:24:54 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Locate-latest-max-value-in-list-for-each-day/m-p/16543#M15072</guid>
      <dc:creator>terapin</dc:creator>
      <dc:date>2016-01-28T19:24:54Z</dc:date>
    </item>
    <item>
      <title>Re: Locate latest max value in list for each day</title>
      <link>https://community.jmp.com/t5/Discussions/Locate-latest-max-value-in-list-for-each-day/m-p/16544#M15073</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe something like this? I learned the rather neat 'Row' trick from Brady Brady I think.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin: 0px; font-size: 12px; line-height: normal; font-family: Courier; color: #032ce4;"&gt;NamesDefaultToHere&lt;SPAN style="color: #000000;"&gt;&lt;STRONG&gt;(&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #009193;"&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #011993;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0px; font-size: 12px; line-height: normal; font-family: Courier; color: #008f00;"&gt;// Make some data&lt;/P&gt;&lt;P style="margin: 0px; font-size: 12px; line-height: normal; font-family: Courier; color: #942193;"&gt;&lt;SPAN style="color: #000000;"&gt;dt &lt;/SPAN&gt;&lt;SPAN style="color: #011993;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #032ce4;"&gt;NewTable&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;&lt;STRONG&gt;(&lt;/STRONG&gt;&lt;/SPAN&gt;"Multiple Max"&lt;SPAN style="color: #011993;"&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0px; font-size: 12px; line-height: normal; font-family: Courier;"&gt;&lt;SPAN class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #032ce4;"&gt;NewColumn&lt;/SPAN&gt;&lt;STRONG&gt;(&lt;/STRONG&gt;&lt;SPAN style="color: #942193;"&gt;"Group"&lt;/SPAN&gt;&lt;SPAN style="color: #011993;"&gt;,&lt;/SPAN&gt; Numeric&lt;SPAN style="color: #011993;"&gt;,&lt;/SPAN&gt; Nominal&lt;SPAN style="color: #011993;"&gt;,&lt;/SPAN&gt; Formula&lt;STRONG&gt;(&lt;/STRONG&gt;&lt;SPAN style="color: #032ce4;"&gt;RandomInteger&lt;/SPAN&gt;&lt;STRONG&gt;(&lt;/STRONG&gt;&lt;SPAN style="color: #009193;"&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #011993;"&gt;,&lt;/SPAN&gt; &lt;SPAN style="color: #009193;"&gt;&lt;STRONG&gt;3&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt;)))&lt;/STRONG&gt;&lt;SPAN style="color: #011993;"&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0px; font-size: 12px; line-height: normal; font-family: Courier;"&gt;&lt;SPAN class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #032ce4;"&gt;NewColumn&lt;/SPAN&gt;&lt;STRONG&gt;(&lt;/STRONG&gt;&lt;SPAN style="color: #942193;"&gt;"Values"&lt;/SPAN&gt;&lt;SPAN style="color: #011993;"&gt;,&lt;/SPAN&gt; Numeric&lt;SPAN style="color: #011993;"&gt;,&lt;/SPAN&gt; Comtinuous&lt;SPAN style="color: #011993;"&gt;,&lt;/SPAN&gt; Formula&lt;STRONG&gt;(&lt;/STRONG&gt;&lt;SPAN style="color: #032ce4;"&gt;RandomInteger&lt;/SPAN&gt;&lt;STRONG&gt;(&lt;/STRONG&gt;&lt;SPAN style="color: #009193;"&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #011993;"&gt;,&lt;/SPAN&gt; &lt;SPAN style="color: #009193;"&gt;&lt;STRONG&gt;6&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt;)))&lt;/STRONG&gt;&lt;SPAN style="color: #011993;"&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0px; font-size: 12px; line-height: normal; font-family: Courier;"&gt;&lt;SPAN class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/SPAN&gt;AddRows&lt;STRONG&gt;(&lt;/STRONG&gt;&lt;SPAN style="color: #009193;"&gt;&lt;STRONG&gt;100&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin: 0px; font-size: 12px; line-height: normal; font-family: Courier;"&gt;&lt;SPAN class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/SPAN&gt;&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;SPAN style="color: #011993;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0px; font-size: 12px; line-height: normal; font-family: Courier; color: #011993;"&gt;&lt;SPAN style="color: #000000;"&gt;dt &lt;/SPAN&gt;&amp;lt;&amp;lt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;STRONG&gt;runFormulas&lt;/STRONG&gt;;&lt;/P&gt;&lt;P style="margin: 0px; font-size: 12px; line-height: normal; font-family: Courier; color: #011993;"&gt;&lt;SPAN style="color: #032ce4;"&gt;Column&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;&lt;STRONG&gt;(&lt;/STRONG&gt;dt&lt;/SPAN&gt;,&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #942193;"&gt;"Group"&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;&lt;STRONG&gt;)&lt;/STRONG&gt; &lt;/SPAN&gt;&amp;lt;&amp;lt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;STRONG&gt;deleteFormula&lt;/STRONG&gt;;&lt;/P&gt;&lt;P style="margin: 0px; font-size: 12px; line-height: normal; font-family: Courier; color: #011993;"&gt;&lt;SPAN style="color: #032ce4;"&gt;Column&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;&lt;STRONG&gt;(&lt;/STRONG&gt;dt&lt;/SPAN&gt;,&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #942193;"&gt;"Values"&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;&lt;STRONG&gt;)&lt;/STRONG&gt; &lt;/SPAN&gt;&amp;lt;&amp;lt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;STRONG&gt;deleteFormula&lt;/STRONG&gt;;&lt;/P&gt;&lt;P style="margin: 0px; font-size: 12px; line-height: normal; font-family: Courier;"&gt;dt &lt;SPAN style="color: #011993;"&gt;&amp;lt;&amp;lt;&lt;/SPAN&gt; &lt;SPAN style="color: #011993;"&gt;&lt;STRONG&gt;Sort&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt;(&lt;/STRONG&gt;By&lt;STRONG&gt;(&lt;/STRONG&gt;&lt;SPAN style="color: #011993;"&gt;:&lt;/SPAN&gt;Group&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;SPAN style="color: #011993;"&gt;,&lt;/SPAN&gt; ReplaceTable&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;SPAN style="color: #011993;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0px; font-size: 12px; line-height: normal; font-family: Courier; min-height: 14px;"&gt;&lt;/P&gt;&lt;P style="margin: 0px; font-size: 12px; line-height: normal; font-family: Courier; color: #008f00;"&gt;// Define two useful columns (later deleted)&lt;/P&gt;&lt;P style="margin: 0px; font-size: 12px; line-height: normal; font-family: Courier;"&gt;dt &lt;SPAN style="color: #011993;"&gt;&amp;lt;&amp;lt;&lt;/SPAN&gt; &lt;SPAN style="color: #011993;"&gt;&lt;STRONG&gt;New Column&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt;(&lt;/STRONG&gt; &lt;SPAN style="color: #942193;"&gt;"Row"&lt;/SPAN&gt;&lt;SPAN style="color: #011993;"&gt;,&lt;/SPAN&gt; formula&lt;STRONG&gt;(&lt;/STRONG&gt; &lt;SPAN style="color: #032ce4;"&gt;Row&lt;/SPAN&gt;&lt;STRONG&gt;()&lt;/STRONG&gt; &lt;STRONG&gt;)&lt;/STRONG&gt; &lt;STRONG&gt;)&lt;/STRONG&gt;&lt;SPAN style="color: #011993;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0px; font-size: 12px; line-height: normal; font-family: Courier;"&gt;dt &lt;SPAN style="color: #011993;"&gt;&amp;lt;&amp;lt;&lt;/SPAN&gt; &lt;SPAN style="color: #011993;"&gt;&lt;STRONG&gt;NewColumn&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt;(&lt;/STRONG&gt;&lt;SPAN style="color: #942193;"&gt;"Indicator"&lt;/SPAN&gt;&lt;SPAN style="color: #011993;"&gt;,&lt;/SPAN&gt; Numeric&lt;SPAN style="color: #011993;"&gt;,&lt;/SPAN&gt; Nominal&lt;SPAN style="color: #011993;"&gt;,&lt;/SPAN&gt; Formula&lt;STRONG&gt;(&lt;/STRONG&gt;&lt;SPAN style="color: #032ce4;"&gt;If&lt;/SPAN&gt;&lt;STRONG&gt;(&lt;/STRONG&gt;&lt;SPAN style="color: #011993;"&gt;:&lt;/SPAN&gt;Values&lt;STRONG&gt;[&lt;/STRONG&gt;&lt;SPAN style="color: #032ce4;"&gt;Row&lt;/SPAN&gt;&lt;STRONG&gt;()]&lt;/STRONG&gt; &lt;SPAN style="color: #011993;"&gt;==&lt;/SPAN&gt; &lt;SPAN style="color: #032ce4;"&gt;Col Maximum&lt;/SPAN&gt;&lt;STRONG&gt;(&lt;/STRONG&gt;&lt;SPAN style="color: #011993;"&gt;:&lt;/SPAN&gt;Values&lt;SPAN style="color: #011993;"&gt;,&lt;/SPAN&gt; &lt;SPAN style="color: #011993;"&gt;:&lt;/SPAN&gt;Group&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;SPAN style="color: #011993;"&gt;,&lt;/SPAN&gt; &lt;SPAN style="color: #009193;"&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt;)))&lt;/STRONG&gt;&lt;SPAN style="color: #011993;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0px; font-size: 12px; line-height: normal; font-family: Courier; color: #008f00;"&gt;// Make an invisible summary table&lt;/P&gt;&lt;P style="margin: 0px; font-size: 12px; line-height: normal; font-family: Courier;"&gt;dt2 &lt;SPAN style="color: #011993;"&gt;=&lt;/SPAN&gt; dt &lt;SPAN style="color: #011993;"&gt;&amp;lt;&amp;lt;&lt;/SPAN&gt; &lt;SPAN style="color: #011993;"&gt;&lt;STRONG&gt;Summary&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt;(&lt;/STRONG&gt;Group&lt;STRONG&gt;(&lt;/STRONG&gt;&lt;SPAN style="color: #011993;"&gt;:&lt;/SPAN&gt;Group&lt;SPAN style="color: #011993;"&gt;,&lt;/SPAN&gt; &lt;SPAN style="color: #011993;"&gt;:&lt;/SPAN&gt;Indicator&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;SPAN style="color: #011993;"&gt;,&lt;/SPAN&gt; &lt;SPAN style="color: #032ce4;"&gt;Max&lt;/SPAN&gt;&lt;STRONG&gt;(&lt;/STRONG&gt;&lt;SPAN style="color: #011993;"&gt;:&lt;/SPAN&gt;Row&lt;STRONG&gt;))&lt;/STRONG&gt;&lt;SPAN style="color: #011993;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0px; font-size: 12px; line-height: normal; font-family: Courier;"&gt;iVals &lt;SPAN style="color: #011993;"&gt;=&lt;/SPAN&gt; &lt;SPAN style="color: #032ce4;"&gt;Column&lt;/SPAN&gt;&lt;STRONG&gt;(&lt;/STRONG&gt;dt2&lt;SPAN style="color: #011993;"&gt;,&lt;/SPAN&gt; &lt;SPAN style="color: #942193;"&gt;"Indicator"&lt;/SPAN&gt;&lt;STRONG&gt;)&lt;/STRONG&gt; &lt;SPAN style="color: #011993;"&gt;&amp;lt;&amp;lt;&lt;/SPAN&gt; &lt;SPAN style="color: #011993;"&gt;&lt;STRONG&gt;getValues&lt;/STRONG&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0px; font-size: 12px; line-height: normal; font-family: Courier;"&gt;mVals &lt;SPAN style="color: #011993;"&gt;=&lt;/SPAN&gt; &lt;SPAN style="color: #032ce4;"&gt;Column&lt;/SPAN&gt;&lt;STRONG&gt;(&lt;/STRONG&gt;dt2&lt;SPAN style="color: #011993;"&gt;,&lt;/SPAN&gt; &lt;SPAN style="color: #942193;"&gt;"Max(Row)"&lt;/SPAN&gt;&lt;STRONG&gt;)&lt;/STRONG&gt; &lt;SPAN style="color: #011993;"&gt;&amp;lt;&amp;lt;&lt;/SPAN&gt; &lt;SPAN style="color: #011993;"&gt;&lt;STRONG&gt;getValues&lt;/STRONG&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0px; font-size: 12px; line-height: normal; font-family: Courier;"&gt;rn &lt;SPAN style="color: #011993;"&gt;=&lt;/SPAN&gt; mVals&lt;STRONG&gt;[&lt;/STRONG&gt;&lt;SPAN style="color: #032ce4;"&gt;Loc&lt;/SPAN&gt;&lt;STRONG&gt;(&lt;/STRONG&gt;iVals &lt;SPAN style="color: #011993;"&gt;==&lt;/SPAN&gt; &lt;SPAN style="color: #009193;"&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt;)]&lt;/STRONG&gt;&lt;SPAN style="color: #011993;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0px; font-size: 12px; line-height: normal; font-family: Courier;"&gt;&lt;SPAN style="color: #032ce4;"&gt;Close&lt;/SPAN&gt;&lt;STRONG&gt;(&lt;/STRONG&gt;dt2&lt;SPAN style="color: #011993;"&gt;,&lt;/SPAN&gt; NoSave&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;SPAN style="color: #011993;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0px; font-size: 12px; line-height: normal; font-family: Courier; color: #008f00;"&gt;// Delete the auxiliary columns&lt;/P&gt;&lt;P style="margin: 0px; font-size: 12px; line-height: normal; font-family: Courier;"&gt;dt &lt;SPAN style="color: #011993;"&gt;&amp;lt;&amp;lt;&lt;/SPAN&gt; &lt;SPAN style="color: #011993;"&gt;&lt;STRONG&gt;deleteColumns&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt;({&lt;/STRONG&gt;&lt;SPAN style="color: #011993;"&gt;:&lt;/SPAN&gt;Row&lt;SPAN style="color: #011993;"&gt;,&lt;/SPAN&gt; &lt;SPAN style="color: #011993;"&gt;:&lt;/SPAN&gt;Indicator&lt;STRONG&gt;})&lt;/STRONG&gt;&lt;SPAN style="color: #011993;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0px; font-size: 12px; line-height: normal; font-family: Courier; color: #032ce4;"&gt;ClearLog&lt;SPAN style="color: #000000;"&gt;&lt;STRONG&gt;()&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #011993;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0px; font-size: 12px; line-height: normal; font-family: Courier; color: #032ce4;"&gt;Print&lt;SPAN style="color: #000000;"&gt;&lt;STRONG&gt;(&lt;/STRONG&gt;rn&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #011993;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jan 2016 13:50:54 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Locate-latest-max-value-in-list-for-each-day/m-p/16544#M15073</guid>
      <dc:creator>ian_jmp</dc:creator>
      <dc:date>2016-01-29T13:50:54Z</dc:date>
    </item>
    <item>
      <title>Re: Locate latest max value in list for each day</title>
      <link>https://community.jmp.com/t5/Discussions/Locate-latest-max-value-in-list-for-each-day/m-p/16545#M15074</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You might try replacing the last line of your code (where you are selecting all the rows in the "rows" matrix) with the following loop. It just compares the Date for each index in rows with the next one and only selects the row if they are not equal. The last line of code selects the last row in "rows" since there is nothing to compare it to. Hope this is what you are after (the assumption is that the table is sorted by Date &amp;amp; Time as in your example).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For( i = 1, i &amp;lt;= N Rows( rows ) - 1, i++,&lt;/P&gt;&lt;P&gt; If( :Date[rows&lt;I&gt;] != :Date[rows[i + 1]],&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; dt_growth &amp;lt;&amp;lt; Select Rows( rows&lt;I&gt; )&lt;/I&gt;&lt;/P&gt;&lt;P&gt; )&lt;/P&gt;&lt;P&gt;);&lt;/P&gt;&lt;P&gt;dt_growth &amp;lt;&amp;lt; Select Rows( rows&lt;I&gt; );&lt;/I&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jan 2016 17:23:38 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Locate-latest-max-value-in-list-for-each-day/m-p/16545#M15074</guid>
      <dc:creator>jerry_cooper</dc:creator>
      <dc:date>2016-01-29T17:23:38Z</dc:date>
    </item>
    <item>
      <title>Re: Locate latest max value in list for each day</title>
      <link>https://community.jmp.com/t5/Discussions/Locate-latest-max-value-in-list-for-each-day/m-p/16546#M15075</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Craige,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think I was too quick to dismiss your suggestion.&amp;nbsp; After playing with your example more I see that it does in fact do what I was hoping for.&amp;nbsp; Sorry to be so quick in dismissing your suggestion previously. I ended up using Ian's suggestion instead since it put the items I needed into lists.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Feb 2016 23:01:59 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Locate-latest-max-value-in-list-for-each-day/m-p/16546#M15075</guid>
      <dc:creator>terapin</dc:creator>
      <dc:date>2016-02-04T23:01:59Z</dc:date>
    </item>
    <item>
      <title>Re: Locate latest max value in list for each day</title>
      <link>https://community.jmp.com/t5/Discussions/Locate-latest-max-value-in-list-for-each-day/m-p/16547#M15076</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ian,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your suggestion.&amp;nbsp; Although Craige's suggestion worked as well, yours did a fantastic job of putting the items I need for additional calculations into lists.&amp;nbsp; I learned a lot from your (Brady Brady's) suggestion about the absolute power of Associative Arrays.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Feb 2016 23:05:58 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Locate-latest-max-value-in-list-for-each-day/m-p/16547#M15076</guid>
      <dc:creator>terapin</dc:creator>
      <dc:date>2016-02-04T23:05:58Z</dc:date>
    </item>
  </channel>
</rss>

