<?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: Selecting the most recent records based on unique values in another field in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/selecting-the-most-recent-records-based-on-unique/m-p/1368882#M77258</link>
    <description>&lt;P&gt;You will have to create a layer from the feature classes ("create feature layer" GP tool) then use the select by attribute on that&lt;/P&gt;</description>
    <pubDate>Thu, 11 Jan 2024 14:04:06 GMT</pubDate>
    <dc:creator>RichardHowe</dc:creator>
    <dc:date>2024-01-11T14:04:06Z</dc:date>
    <item>
      <title>Selecting the most recent records based on unique values in another field</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/selecting-the-most-recent-records-based-on-unique/m-p/1365493#M76860</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have built the model in the picture, which works fine. But the next step I want to do is for each of the new feature classes that are created, I want only the most recent record of each unique record from the species field. But I want all the associated fields to come through into the new feature class. See table picture below, for example I only want the most recent record of Sparrowhawk.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am not sure how to do this and if I can add it into the model as part of the process?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Model.JPG" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/90303i0D4FE3C80780356E/image-size/large?v=v2&amp;amp;px=999" role="button" title="Model.JPG" alt="Model.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Table.JPG" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/90305iECF72533C78CC3EE/image-size/large?v=v2&amp;amp;px=999" role="button" title="Table.JPG" alt="Table.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jan 2024 18:33:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/selecting-the-most-recent-records-based-on-unique/m-p/1365493#M76860</guid>
      <dc:creator>SteveMasters</dc:creator>
      <dc:date>2024-01-02T18:33:36Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting the most recent records based on unique values in another field</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/selecting-the-most-recent-records-based-on-unique/m-p/1365512#M76864</link>
      <description>&lt;P&gt;&lt;STRIKE&gt;What kind of geodatabase is your data in? Have you considered using a &lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/data-management/create-database-view.htm#:~:text=This%20tool%20is%20supported" target="_self"&gt;database view&lt;/A&gt; instead?&lt;/STRIKE&gt;&lt;/P&gt;&lt;P&gt;Never mind. I didn't read the question close enough.&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jan 2024 19:07:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/selecting-the-most-recent-records-based-on-unique/m-p/1365512#M76864</guid>
      <dc:creator>Bud</dc:creator>
      <dc:date>2024-01-02T19:07:33Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting the most recent records based on unique values in another field</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/selecting-the-most-recent-records-based-on-unique/m-p/1365688#M76879</link>
      <description>&lt;P&gt;First off you would need your "Date" field to be of type Date. Nothing programmatic is going to be able to analyse that currently with variants of free text, date formats and ranges. I would suggest using year (if the field was numeric) but I note some duplicates in that case. Once you have a nicely formatted date field then life would be simpler with python, but via model builder, off the top of my head...&lt;BR /&gt;&lt;BR /&gt;Add a split by attributes, use "Species" field to split them and give you one feature class per species. Run a "Select by attributes" on each using:&lt;BR /&gt;&lt;BR /&gt;Date = (SELECT MAX(Date) FROM &amp;lt;insertfeatureclassnamehere&amp;gt;)&lt;BR /&gt;&lt;BR /&gt;Then merge each of the selections back into a single feature class&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jan 2024 08:51:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/selecting-the-most-recent-records-based-on-unique/m-p/1365688#M76879</guid>
      <dc:creator>RichardHowe</dc:creator>
      <dc:date>2024-01-03T08:51:34Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting the most recent records based on unique values in another field</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/selecting-the-most-recent-records-based-on-unique/m-p/1365915#M76902</link>
      <description>&lt;P&gt;I think the database view is a good idea, would be some subquery with a GROUP BY species and MAX (date) as&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/75013"&gt;@RichardHowe&lt;/a&gt;&amp;nbsp;suggests&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jan 2024 17:55:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/selecting-the-most-recent-records-based-on-unique/m-p/1365915#M76902</guid>
      <dc:creator>DavidPike</dc:creator>
      <dc:date>2024-01-03T17:55:02Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting the most recent records based on unique values in another field</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/selecting-the-most-recent-records-based-on-unique/m-p/1365917#M76903</link>
      <description>&lt;P&gt;Probably the best model builder way as I think subqueries (in ArcGIS select by tool) are limited to scalar.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jan 2024 17:56:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/selecting-the-most-recent-records-based-on-unique/m-p/1365917#M76903</guid>
      <dc:creator>DavidPike</dc:creator>
      <dc:date>2024-01-03T17:56:35Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting the most recent records based on unique values in another field</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/selecting-the-most-recent-records-based-on-unique/m-p/1366392#M76963</link>
      <description>&lt;P&gt;If I was to create a database view, just struggling with correct syntax to go through the feature class in the file geodatabase what do put after the FROM part see picture. Or am I completely way off!&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SteveMasters_0-1704389685136.png" style="width: 607px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/90535i2B462CE96080C006/image-dimensions/607x357?v=v2" width="607" height="357" role="button" title="SteveMasters_0-1704389685136.png" alt="SteveMasters_0-1704389685136.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jan 2024 17:35:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/selecting-the-most-recent-records-based-on-unique/m-p/1366392#M76963</guid>
      <dc:creator>SteveMasters</dc:creator>
      <dc:date>2024-01-04T17:35:39Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting the most recent records based on unique values in another field</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/selecting-the-most-recent-records-based-on-unique/m-p/1366394#M76964</link>
      <description>&lt;P&gt;Ah I tried a FGDB view and couldn't subqueries with GROUP BY working.&amp;nbsp; I'd really recommend what&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/75013"&gt;@RichardHowe&lt;/a&gt;&amp;nbsp;suggested as the most practical way.&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jan 2024 17:39:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/selecting-the-most-recent-records-based-on-unique/m-p/1366394#M76964</guid>
      <dc:creator>DavidPike</dc:creator>
      <dc:date>2024-01-04T17:39:25Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting the most recent records based on unique values in another field</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/selecting-the-most-recent-records-based-on-unique/m-p/1366745#M76985</link>
      <description>&lt;P&gt;Thanks for this&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/75013"&gt;@RichardHowe&lt;/a&gt;. I had a go with the model below, and ended up with the species all split out into feature classes, but then am unsure how to get them all back through the select by attribute process and then merge back. Do you have any other tips? Sorry I am new to model builder and python.&lt;/P&gt;&lt;P&gt;Also is there way for the process to cycle through the FGDB and do it for all? I could get a iterator to work and then input to the split by attributes.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SteveMasters_0-1704451879891.png" style="width: 495px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/90646i2A6FFD7A153A181B/image-dimensions/495x237?v=v2" width="495" height="237" role="button" title="SteveMasters_0-1704451879891.png" alt="SteveMasters_0-1704451879891.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jan 2024 10:53:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/selecting-the-most-recent-records-based-on-unique/m-p/1366745#M76985</guid>
      <dc:creator>SteveMasters</dc:creator>
      <dc:date>2024-01-05T10:53:12Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting the most recent records based on unique values in another field</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/selecting-the-most-recent-records-based-on-unique/m-p/1366757#M76988</link>
      <description>&lt;P&gt;It's be a while since I used model builder tbf. If memory serves you can only have one iterator per model. So you would need to save that model and then embed it in a new one which will allow you to add another iterator which you could use with the "Make feature Layer" tool which you include the aofrementioned query with (giving you one feature per feature class), then use all those feature layers as inputs for the merge tool.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jan 2024 11:59:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/selecting-the-most-recent-records-based-on-unique/m-p/1366757#M76988</guid>
      <dc:creator>RichardHowe</dc:creator>
      <dc:date>2024-01-05T11:59:59Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting the most recent records based on unique values in another field</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/selecting-the-most-recent-records-based-on-unique/m-p/1366839#M77004</link>
      <description>&lt;P&gt;I am struggling to get it work, I wonder if you might be able to demonstrate what you mean&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/75013"&gt;@RichardHowe&lt;/a&gt;?&lt;/P&gt;&lt;P&gt;I am happy for it to be python script if easier.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jan 2024 15:51:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/selecting-the-most-recent-records-based-on-unique/m-p/1366839#M77004</guid>
      <dc:creator>SteveMasters</dc:creator>
      <dc:date>2024-01-05T15:51:43Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting the most recent records based on unique values in another field</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/selecting-the-most-recent-records-based-on-unique/m-p/1366891#M77013</link>
      <description>&lt;P&gt;Because the output feature classes from the split by attributes tool come from an iterator you can't just connect them to the merge tool (which I think you understand from your previous reply).&lt;/P&gt;&lt;P&gt;I think the recommended way is described here&amp;nbsp;&lt;A href="https://community.esri.com/t5/arcgis-pro-questions/merge-outputs-of-an-iterator-modelbuilder/td-p/1180000" target="_blank"&gt;https://community.esri.com/t5/arcgis-pro-questions/merge-outputs-of-an-iterator-modelbuilder/td-p/1180000&lt;/A&gt; by using the Collect Values tool&amp;nbsp;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/modelbuilder-toolbox/collect-values.htm" target="_blank"&gt;https://pro.arcgis.com/en/pro-app/latest/tool-reference/modelbuilder-toolbox/collect-values.htm&lt;/A&gt; to collect the paths of the output feature classes.&amp;nbsp; You would then use the collected values as input to the merge.&amp;nbsp; Obviously before you do the merge you'd want to Select By Attributes on the MAX(Date) as Richard demonstrated.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jan 2024 17:46:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/selecting-the-most-recent-records-based-on-unique/m-p/1366891#M77013</guid>
      <dc:creator>DavidPike</dc:creator>
      <dc:date>2024-01-05T17:46:33Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting the most recent records based on unique values in another field</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/selecting-the-most-recent-records-based-on-unique/m-p/1367258#M77072</link>
      <description>&lt;P&gt;Ah yeah, good call. I had forgotten about the collect values option (as I said a while since I ever used MB). I think this should work fine.&lt;/P&gt;&lt;P&gt;If not though, my suggestion was to save what you have &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/547611"&gt;@SteveMasters&lt;/a&gt;&amp;nbsp;and then create a second blank model. You will then be able to drag and drop your saved model into that blank model (just like any other tool) and then re-use iterator.&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jan 2024 09:15:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/selecting-the-most-recent-records-based-on-unique/m-p/1367258#M77072</guid>
      <dc:creator>RichardHowe</dc:creator>
      <dc:date>2024-01-08T09:15:34Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting the most recent records based on unique values in another field</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/selecting-the-most-recent-records-based-on-unique/m-p/1367518#M77100</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/167692"&gt;@DavidPike&lt;/a&gt;&amp;nbsp;and&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/75013"&gt;@RichardHowe&lt;/a&gt; for the collect value suggestions. How do I run the select by attributes tool, to select for max year or rec before collecting the values? I cant add a workspace as an input. If I was to collect the values and then run it, all I'd be doing is splitting and recombine the dataset. Maybe i need to go back to the original dataset before splitting them out into the individual sites?&lt;/P&gt;&lt;P&gt;Sorry this is bit painful! Feel free not to respond!&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jan 2024 18:14:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/selecting-the-most-recent-records-based-on-unique/m-p/1367518#M77100</guid>
      <dc:creator>SteveMasters</dc:creator>
      <dc:date>2024-01-08T18:14:57Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting the most recent records based on unique values in another field</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/selecting-the-most-recent-records-based-on-unique/m-p/1367728#M77119</link>
      <description>&lt;P&gt;We already established that query wouldn't work&amp;nbsp; on the initial dataset because you can't subquery the group. The split is important first so that then you can ask it for the newest value within each group.&lt;BR /&gt;&lt;BR /&gt;If colect values isn't allowed as an input the "create feature layer" (a quick look suggest it might not be) then I go back to my original suggestion. Save what you have, create a brand new blank model and then drag and drop your saved model from catalog into the new model and iterate over the output gdb for each feature class and make those the inputs for the "create feature layer"&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jan 2024 08:39:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/selecting-the-most-recent-records-based-on-unique/m-p/1367728#M77119</guid>
      <dc:creator>RichardHowe</dc:creator>
      <dc:date>2024-01-09T08:39:12Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting the most recent records based on unique values in another field</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/selecting-the-most-recent-records-based-on-unique/m-p/1367998#M77153</link>
      <description>&lt;P&gt;Yeh I had a look at this and you'll need to go with Richard's suggestion of a submodel as you can't have 2 iterators.&amp;nbsp; The collect values wont work so you need to have an iterator to go over the feature classes in that workspace (output from split by attributes).&amp;nbsp; The iterator would run that select by attributes query for each feature class (which Richard supplied earlier) -&amp;gt; Export to new feature classes -&amp;gt; Collect values -&amp;gt; Merge.&lt;/P&gt;&lt;P&gt;This kinda stuff is where you'd really want Python instead.&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jan 2024 18:29:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/selecting-the-most-recent-records-based-on-unique/m-p/1367998#M77153</guid>
      <dc:creator>DavidPike</dc:creator>
      <dc:date>2024-01-09T18:29:45Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting the most recent records based on unique values in another field</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/selecting-the-most-recent-records-based-on-unique/m-p/1368069#M77165</link>
      <description>&lt;P&gt;This is likely not the fastest, best or most logical way to do it, but it should do the job.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;import arcpy
 
#input feature class
in_fc = r'C:\path to your FC'
 
#dictionary to store objectid of newest sighting date for each species
date_dict = {}
 
#cursor to iterate through each row in fc
#if date is more recent than current species value for key
#update to the matching oid of that date in dictionary
with arcpy.da.SearchCursor(in_fc, ['OBJECTID', 'your species field', 'your date field']) as cursor:
    for row in cursor:
        #unpack row 
        oid, species, date = row
        #if no dictionary value yet, add 1st entry
        if species not in date_dict:
            date_dict[species]=[date, oid]
        #check existing date is older, if so - replace it
        elif date &amp;gt; date_dict[species][0]: 
            date_dict[species]=[date, oid]
 
#create string of object ids for selection query input
oid_list = [value[1] for value in date_dict.values()]
selection_string = '(' + ','.join(map(str,oid_list)) +')'

#turn into feature layer for selection
feature_layer = arcpy.MakeFeatureLayer_management(in_fc, "feature_layer")
#select by attributes using oid list/string 
selection = arcpy.management.SelectLayerByAttribute(feature_layer, "NEW_SELECTION", f'OBJECTID IN {selection_string}')

#save your new fc
out_fc = r'C:\path to new fc output'
arcpy.CopyFeatures_management(selection, out_fc)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jan 2024 19:52:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/selecting-the-most-recent-records-based-on-unique/m-p/1368069#M77165</guid>
      <dc:creator>DavidPike</dc:creator>
      <dc:date>2024-01-09T19:52:09Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting the most recent records based on unique values in another field</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/selecting-the-most-recent-records-based-on-unique/m-p/1368189#M77174</link>
      <description>&lt;P&gt;David, some Python-related thoughts on your code:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Python defaultdict removes the need to check for a keys existence before comparing a key's value to a new value.&lt;/LI&gt;&lt;LI&gt;Python min and max functions are purpose-built for comparing values and selecting the lowest or highest&lt;/LI&gt;&lt;LI&gt;Tuple/list unpacking can be done in the for loop, a separate line isn't needed.&lt;/LI&gt;&lt;LI&gt;Generator expressions were partially introduced to reduce the need to use filter() and map(), whose functional-programming style/nature somewhat contrasts with many other aspects of the Python language.&lt;/LI&gt;&lt;/UL&gt;&lt;LI-CODE lang="python"&gt;import arcpy
import datetime
from collections import defaultdict
 
# input feature class
in_fc = r'C:\path to your FC'
 
# default dictionary to store objectid of newest sighting date for each species
date_dict = defaultdict(lambda: (datetime.datetime.min, -1))
 
# cursor to iterate through each row in fc
# store the maximum (most recent) date for each species and its ObjectID
with arcpy.da.SearchCursor(in_fc, ['OBJECTID', 'your species field', 'your date field']) as cursor:
    for oid, species, date in cursor:
        date_dict[species] = max(date_dict[species], (date, oid))
 
# create sql statement for selecting ObjectIDs
sql = f"OBJECTID IN ({','.join(str(oid) for date,oid in date_dict.values())})"

# turn into feature layer for selection
feature_layer = arcpy.MakeFeatureLayer_management(in_fc, "feature_layer")
# select by attributes using oid list/string 
selection = arcpy.management.SelectLayerByAttribute(feature_layer, "NEW_SELECTION", f'OBJECTID IN {selection_string}')

# save your new fc
out_fc = r'C:\path to new fc output'
arcpy.CopyFeatures_management(selection, out_fc)&lt;/LI-CODE&gt;&lt;UL&gt;&lt;LI&gt;&amp;nbsp;&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Wed, 10 Jan 2024 01:01:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/selecting-the-most-recent-records-based-on-unique/m-p/1368189#M77174</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2024-01-10T01:01:12Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting the most recent records based on unique values in another field</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/selecting-the-most-recent-records-based-on-unique/m-p/1368510#M77215</link>
      <description>&lt;P&gt;Thanks Joshua,&amp;nbsp; much neater (and optimised).&amp;nbsp; I wonder about the (date, oid) tuple and whether something like having 'date' and 'oid' as keys in their own dictionary (these keys being values of date_dict..) and if that would be faster or slower.&lt;/P&gt;&lt;P&gt;My only other thoughts are another idea of turning the feature class into some data format that could work with the SQL subquery with max(date) and groupBy species, but the juice might not be worth the squeeze on that one.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jan 2024 18:43:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/selecting-the-most-recent-records-based-on-unique/m-p/1368510#M77215</guid>
      <dc:creator>DavidPike</dc:creator>
      <dc:date>2024-01-10T18:43:51Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting the most recent records based on unique values in another field</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/selecting-the-most-recent-records-based-on-unique/m-p/1368831#M77254</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SteveMasters_0-1704975167833.png" style="width: 507px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/91189iCA8DBA2EE108EC63/image-dimensions/507x292?v=v2" width="507" height="292" role="button" title="SteveMasters_0-1704975167833.png" alt="SteveMasters_0-1704975167833.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Still trying in model builder. The above I tried with just one of the feature classes I need iterate through to get to my result. So this will go through the input feature class and split by attribute on 'species', works they all end up in the output geodatabase as separate feature classes. But then I need to iterate through these using the select by attribute to get the max year of record. But it fails at this point as the output of iterator won't go in. It says 'table not found'.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jan 2024 12:19:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/selecting-the-most-recent-records-based-on-unique/m-p/1368831#M77254</guid>
      <dc:creator>SteveMasters</dc:creator>
      <dc:date>2024-01-11T12:19:37Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting the most recent records based on unique values in another field</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/selecting-the-most-recent-records-based-on-unique/m-p/1368882#M77258</link>
      <description>&lt;P&gt;You will have to create a layer from the feature classes ("create feature layer" GP tool) then use the select by attribute on that&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jan 2024 14:04:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/selecting-the-most-recent-records-based-on-unique/m-p/1368882#M77258</guid>
      <dc:creator>RichardHowe</dc:creator>
      <dc:date>2024-01-11T14:04:06Z</dc:date>
    </item>
  </channel>
</rss>

