<?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: Survey123 repeat position - avoid double counting on repeat removal in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/survey123-repeat-position-avoid-double-counting-on/m-p/1356636#M53220</link>
    <description>&lt;P&gt;We get this on the regular.&amp;nbsp; If they go back a few and delete all the counting is off as you said.&amp;nbsp; We also have issues where they go back and change stuff.&lt;/P&gt;&lt;P&gt;No way around it really we just had to train our crews to not do that.&lt;/P&gt;</description>
    <pubDate>Mon, 04 Dec 2023 23:01:40 GMT</pubDate>
    <dc:creator>DougBrowning</dc:creator>
    <dc:date>2023-12-04T23:01:40Z</dc:date>
    <item>
      <title>Survey123 repeat position - avoid double counting on repeat removal</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/survey123-repeat-position-avoid-double-counting-on/m-p/1356634#M53218</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Have a survey with a repeat. We'd like to calculate the position of each repeat so that becomes the ID. e.g.&lt;/P&gt;&lt;P&gt;repeat&lt;BR /&gt;ID&lt;BR /&gt;ID name&lt;BR /&gt;End repeat&lt;BR /&gt;&lt;BR /&gt;Gives an outcome like&lt;/P&gt;&lt;TABLE border="1" width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="50%" height="24px"&gt;1&lt;/TD&gt;&lt;TD width="50%" height="24px"&gt;Name 1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="50%" height="24px"&gt;2&lt;/TD&gt;&lt;TD width="50%" height="24px"&gt;Name 2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="50%" height="24px"&gt;3&lt;/TD&gt;&lt;TD width="50%" height="24px"&gt;Name 3&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We can use the position(..) calculation to calculate the ID number within the repeat.&amp;nbsp;&lt;/P&gt;&lt;P&gt;If a user collecting data deletes a repeat, we could use the Once(position(..)) calculation to prevent the ID from changing. However, a new repeat will potentially re-use the same position value. e.g. for the above scenario, if we remove the second repeat entry and entry a new one, the table will look like:&lt;/P&gt;&lt;TABLE border="1" width="100.1264347907868%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="50%" height="24px"&gt;1&lt;/TD&gt;&lt;TD width="50.12771392081737%" height="24px"&gt;Name 1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="50%" height="24px"&gt;3&lt;/TD&gt;&lt;TD width="50.12771392081737%" height="24px"&gt;Name 3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="50%" height="24px"&gt;&lt;STRONG&gt;3&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD width="50.12771392081737%" height="24px"&gt;Name 4&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We can't re-calculate all the IDs as they are referenced in questions later on in the survey.&lt;/P&gt;&lt;P&gt;We want the re-entry to take the 4th position. So looking for ways we could resolve this e.g.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Different calculation method for position(..)&lt;/LI&gt;&lt;LI&gt;Prevent users from deleting repeat entries&lt;/LI&gt;&lt;LI&gt;External calculation/function to track highest value entered across repeat IDs and then +1 into new repeat (without somehow causing a loop)&lt;/LI&gt;&lt;LI&gt;Other suggestions&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/16421"&gt;@DougBrowning&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/2929"&gt;@IsmaelChivite&lt;/a&gt;&amp;nbsp;would really appreciate your eyes on this one &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;</description>
      <pubDate>Mon, 04 Dec 2023 22:58:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/survey123-repeat-position-avoid-double-counting-on/m-p/1356634#M53218</guid>
      <dc:creator>ChristopherCounsell</dc:creator>
      <dc:date>2023-12-04T22:58:23Z</dc:date>
    </item>
    <item>
      <title>Re: Survey123 repeat position - avoid double counting on repeat removal</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/survey123-repeat-position-avoid-double-counting-on/m-p/1356636#M53220</link>
      <description>&lt;P&gt;We get this on the regular.&amp;nbsp; If they go back a few and delete all the counting is off as you said.&amp;nbsp; We also have issues where they go back and change stuff.&lt;/P&gt;&lt;P&gt;No way around it really we just had to train our crews to not do that.&lt;/P&gt;</description>
      <pubDate>Mon, 04 Dec 2023 23:01:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/survey123-repeat-position-avoid-double-counting-on/m-p/1356636#M53220</guid>
      <dc:creator>DougBrowning</dc:creator>
      <dc:date>2023-12-04T23:01:40Z</dc:date>
    </item>
    <item>
      <title>Re: Survey123 repeat position - avoid double counting on repeat removal</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/survey123-repeat-position-avoid-double-counting-on/m-p/1356886#M53238</link>
      <description>&lt;P&gt;I would also love an answer to this (for a different reason though).&lt;/P&gt;&lt;P&gt;I'd just love for repeats to have a "recalculate" option and force their calculates to do their thing again. Adding calculationMode=always to a repeat would be neat (but I can see that bogging things down after a while).&lt;/P&gt;</description>
      <pubDate>Tue, 05 Dec 2023 16:07:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/survey123-repeat-position-avoid-double-counting-on/m-p/1356886#M53238</guid>
      <dc:creator>abureaux</dc:creator>
      <dc:date>2023-12-05T16:07:34Z</dc:date>
    </item>
  </channel>
</rss>

