<?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 How to count up an index when using repeat function in XLSForms in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/how-to-count-up-an-index-when-using-repeat/m-p/1039338#M33339</link>
    <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dear Esri Community,&lt;/P&gt;&lt;P&gt;Is it possible to display the index of the repeat function in a Survey. I only found sum or count function, but it provides only the total number of the answers.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The goal is to create a survey with several answers and each answer should get the index of it, e.g. like this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2021-03-22_16h19_11.png" style="width: 641px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/9085iE4A50B796703D189/image-dimensions/641x501?v=v2" width="641" height="501" role="button" title="2021-03-22_16h19_11.png" alt="2021-03-22_16h19_11.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2021-03-22_16h19_18.png" style="width: 639px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/9086i68A9C169D0000995/image-dimensions/639x499?v=v2" width="639" height="499" role="button" title="2021-03-22_16h19_18.png" alt="2021-03-22_16h19_18.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;This is done by count() function. But when you refresh the first entry, it gets, as expected, also the number 2, because it has two answers, but instead we want the ID T01 here:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2021-03-22_16h32_39.png" style="width: 639px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/9087i55C47E86F2496F91/image-dimensions/639x499?v=v2" width="639" height="499" role="button" title="2021-03-22_16h32_39.png" alt="2021-03-22_16h32_39.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Please see also the attached form.&lt;/P&gt;&lt;P&gt;Thank you for your ideas!&lt;/P&gt;</description>
    <pubDate>Mon, 22 Mar 2021 15:38:38 GMT</pubDate>
    <dc:creator>SnezanaEckl</dc:creator>
    <dc:date>2021-03-22T15:38:38Z</dc:date>
    <item>
      <title>How to count up an index when using repeat function in XLSForms</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/how-to-count-up-an-index-when-using-repeat/m-p/1039338#M33339</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dear Esri Community,&lt;/P&gt;&lt;P&gt;Is it possible to display the index of the repeat function in a Survey. I only found sum or count function, but it provides only the total number of the answers.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The goal is to create a survey with several answers and each answer should get the index of it, e.g. like this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2021-03-22_16h19_11.png" style="width: 641px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/9085iE4A50B796703D189/image-dimensions/641x501?v=v2" width="641" height="501" role="button" title="2021-03-22_16h19_11.png" alt="2021-03-22_16h19_11.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2021-03-22_16h19_18.png" style="width: 639px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/9086i68A9C169D0000995/image-dimensions/639x499?v=v2" width="639" height="499" role="button" title="2021-03-22_16h19_18.png" alt="2021-03-22_16h19_18.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;This is done by count() function. But when you refresh the first entry, it gets, as expected, also the number 2, because it has two answers, but instead we want the ID T01 here:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2021-03-22_16h32_39.png" style="width: 639px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/9087i55C47E86F2496F91/image-dimensions/639x499?v=v2" width="639" height="499" role="button" title="2021-03-22_16h32_39.png" alt="2021-03-22_16h32_39.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Please see also the attached form.&lt;/P&gt;&lt;P&gt;Thank you for your ideas!&lt;/P&gt;</description>
      <pubDate>Mon, 22 Mar 2021 15:38:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/how-to-count-up-an-index-when-using-repeat/m-p/1039338#M33339</guid>
      <dc:creator>SnezanaEckl</dc:creator>
      <dc:date>2021-03-22T15:38:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to count up an index when using repeat function in XLSForms</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/how-to-count-up-an-index-when-using-repeat/m-p/1039344#M33340</link>
      <description>&lt;P&gt;There is a new one still in beta.&amp;nbsp; If you have at least 3.12 you can use position(..) or if you have multiple repeats position(${nameof repeat}).&lt;/P&gt;&lt;P&gt;If not 3.12 you make a field with a calc of 1 then go once(count(field))&lt;/P&gt;&lt;P&gt;Hope that helps&lt;/P&gt;</description>
      <pubDate>Mon, 22 Mar 2021 15:54:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/how-to-count-up-an-index-when-using-repeat/m-p/1039344#M33340</guid>
      <dc:creator>DougBrowning</dc:creator>
      <dc:date>2021-03-22T15:54:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to count up an index when using repeat function in XLSForms</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/how-to-count-up-an-index-when-using-repeat/m-p/1039685#M33348</link>
      <description>&lt;P&gt;Dear&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/16421"&gt;@DougBrowning&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you very much for your help! The position()-function works!&lt;/P&gt;&lt;P&gt;Unfortunately that function is not mentioned in the German documentation yet. But I found it now in the English documentation.&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Snezana&lt;/P&gt;</description>
      <pubDate>Tue, 23 Mar 2021 09:11:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/how-to-count-up-an-index-when-using-repeat/m-p/1039685#M33348</guid>
      <dc:creator>SnezanaEckl</dc:creator>
      <dc:date>2021-03-23T09:11:42Z</dc:date>
    </item>
  </channel>
</rss>

