<?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 Sequentially/incrementally numbering a data point based on another value in that point in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/sequentially-incrementally-numbering-a-data-point/m-p/1232557#M62341</link>
    <description>&lt;DIV&gt;&lt;DIV&gt;Background:&lt;/DIV&gt;&lt;DIV&gt;I have an attribute rule that concatenates a Group Number ('Group_Number') with the date of activity ('CREATEDATE') to make ('Group_Date').&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;What I need:&lt;/DIV&gt;&lt;DIV&gt;I'd like to make an Attribute Rule that will take point submissions on any given Group_Date and increment the Sequential ID ('SEQID') and assign it to the new point, and restart for each day. Visually:&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Group_Date A, Point 1&lt;/DIV&gt;&lt;DIV class=""&gt;Group_Date A, Point 2&lt;/DIV&gt;&lt;DIV class=""&gt;Group_Date A, Point 3&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;Group_Date B, Point 1&lt;/DIV&gt;&lt;DIV class=""&gt;Group_Date B, Point 2&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;Group_Date C, Point 1&lt;/DIV&gt;&lt;DIV class=""&gt;Group_Date C, Point 2&lt;/DIV&gt;&lt;DIV class=""&gt;Group_Date C, Point 3&lt;/DIV&gt;&lt;DIV class=""&gt;Group_Date C, Point 4&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;Group_Date D, Point 1&lt;/DIV&gt;&lt;DIV&gt;...and so on.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I know it can be done through geoprocessing tools and/or python scripts but I'm hoping to figure out an Attribute Rule to automate it so it doesn't have to be maintained. Ideally I'd also like for it to work while offline in Survey123 or Field Maps. Thanks in advance.&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Thu, 17 Nov 2022 01:47:10 GMT</pubDate>
    <dc:creator>CHSnowman</dc:creator>
    <dc:date>2022-11-17T01:47:10Z</dc:date>
    <item>
      <title>Sequentially/incrementally numbering a data point based on another value in that point</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/sequentially-incrementally-numbering-a-data-point/m-p/1232557#M62341</link>
      <description>&lt;DIV&gt;&lt;DIV&gt;Background:&lt;/DIV&gt;&lt;DIV&gt;I have an attribute rule that concatenates a Group Number ('Group_Number') with the date of activity ('CREATEDATE') to make ('Group_Date').&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;What I need:&lt;/DIV&gt;&lt;DIV&gt;I'd like to make an Attribute Rule that will take point submissions on any given Group_Date and increment the Sequential ID ('SEQID') and assign it to the new point, and restart for each day. Visually:&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Group_Date A, Point 1&lt;/DIV&gt;&lt;DIV class=""&gt;Group_Date A, Point 2&lt;/DIV&gt;&lt;DIV class=""&gt;Group_Date A, Point 3&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;Group_Date B, Point 1&lt;/DIV&gt;&lt;DIV class=""&gt;Group_Date B, Point 2&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;Group_Date C, Point 1&lt;/DIV&gt;&lt;DIV class=""&gt;Group_Date C, Point 2&lt;/DIV&gt;&lt;DIV class=""&gt;Group_Date C, Point 3&lt;/DIV&gt;&lt;DIV class=""&gt;Group_Date C, Point 4&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;Group_Date D, Point 1&lt;/DIV&gt;&lt;DIV&gt;...and so on.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I know it can be done through geoprocessing tools and/or python scripts but I'm hoping to figure out an Attribute Rule to automate it so it doesn't have to be maintained. Ideally I'd also like for it to work while offline in Survey123 or Field Maps. Thanks in advance.&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 17 Nov 2022 01:47:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/sequentially-incrementally-numbering-a-data-point/m-p/1232557#M62341</guid>
      <dc:creator>CHSnowman</dc:creator>
      <dc:date>2022-11-17T01:47:10Z</dc:date>
    </item>
    <item>
      <title>Re: Sequentially/incrementally numbering a data point based on another value in that point</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/sequentially-incrementally-numbering-a-data-point/m-p/1232595#M62347</link>
      <description>&lt;P&gt;You can calculate Group_Date and SEQID in the same rule:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;// Calculation Attribute Rule
// triggers: Insert
// Field: empty

// Calculate Group_Date
var group_date = $feature.Group_Number + "_" + Text($feature.CREATEDATE, "Y-MM-DD")

// Find all existing features with the same Group_Date
var features_with_same_group_date = Filter($featureset, "Group_Date = @group_date")

// Calculate SEQID
var next_id = Count(features_with_same_group_date) + 1
var seq_id = group_date + "_" + next_id

// Return Group_Date and SEQID
return {
    "result": {"attributes": {
        "Group_Date": group_date, "SEQID": seq_id
    }}
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;No idea if this will work offline...&lt;/P&gt;</description>
      <pubDate>Thu, 17 Nov 2022 07:15:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/sequentially-incrementally-numbering-a-data-point/m-p/1232595#M62347</guid>
      <dc:creator>JohannesLindner</dc:creator>
      <dc:date>2022-11-17T07:15:20Z</dc:date>
    </item>
    <item>
      <title>Re: Sequentially/incrementally numbering a data point based on another value in that point</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/sequentially-incrementally-numbering-a-data-point/m-p/1232876#M62370</link>
      <description>&lt;P&gt;It worked great! I was trying to make NextSequenceValue work and didn't even consider just using a Count function. Brilliant.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Nov 2022 19:06:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/sequentially-incrementally-numbering-a-data-point/m-p/1232876#M62370</guid>
      <dc:creator>CHSnowman</dc:creator>
      <dc:date>2022-11-17T19:06:39Z</dc:date>
    </item>
  </channel>
</rss>

