<?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 Summarize or Count Repeats inside Repeat in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/summarize-or-count-repeats-inside-repeat/m-p/1138237#M40081</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have parent &amp;amp; child repeat. Parent-Repeat are Storages and Child-Repeat are Books.&lt;/P&gt;&lt;P&gt;I am using sum(${}) and coalesce(${},0) to count all books, but when I add new Storage ID, the Total Number of Book reset and started to zero.&lt;/P&gt;&lt;P&gt;Is there a way how to count all books? or how many book already counted?&lt;/P&gt;&lt;P&gt;From the picture below, the Total Numbers of Books should be 3 books.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="Capture221.JPG" style="width: 282px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/32545i1F99E70F3D8988FF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Capture221.JPG" alt="Capture221.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="Capture222.JPG" style="width: 284px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/32546iF97D40A3C0FB65C4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Capture222.JPG" alt="Capture222.JPG" /&gt;&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;&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;&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;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture223.JPG" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/32547iF30D006D321F229C/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture223.JPG" alt="Capture223.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 28 Jan 2022 07:32:31 GMT</pubDate>
    <dc:creator>bhariadi</dc:creator>
    <dc:date>2022-01-28T07:32:31Z</dc:date>
    <item>
      <title>Summarize or Count Repeats inside Repeat</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/summarize-or-count-repeats-inside-repeat/m-p/1138237#M40081</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have parent &amp;amp; child repeat. Parent-Repeat are Storages and Child-Repeat are Books.&lt;/P&gt;&lt;P&gt;I am using sum(${}) and coalesce(${},0) to count all books, but when I add new Storage ID, the Total Number of Book reset and started to zero.&lt;/P&gt;&lt;P&gt;Is there a way how to count all books? or how many book already counted?&lt;/P&gt;&lt;P&gt;From the picture below, the Total Numbers of Books should be 3 books.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="Capture221.JPG" style="width: 282px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/32545i1F99E70F3D8988FF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Capture221.JPG" alt="Capture221.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="Capture222.JPG" style="width: 284px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/32546iF97D40A3C0FB65C4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Capture222.JPG" alt="Capture222.JPG" /&gt;&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;&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;&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;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture223.JPG" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/32547iF30D006D321F229C/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture223.JPG" alt="Capture223.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jan 2022 07:32:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/summarize-or-count-repeats-inside-repeat/m-p/1138237#M40081</guid>
      <dc:creator>bhariadi</dc:creator>
      <dc:date>2022-01-28T07:32:31Z</dc:date>
    </item>
    <item>
      <title>Re: Summarize or Count Repeats inside Repeat</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/summarize-or-count-repeats-inside-repeat/m-p/1138788#M40120</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/499189"&gt;@bhariadi&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for providing your XLSForm.&lt;/P&gt;&lt;P&gt;Please see attached a simplified XLSForm that attempts to solve your problem using the &lt;EM&gt;count()&lt;/EM&gt; function, and also by rearranging the questions slightly.&lt;/P&gt;&lt;P&gt;One thing to note here is that I've avoided using aggregate functions (sum, count, etc.) &lt;EM&gt;inside&lt;/EM&gt; the repeat that the function is aggregating. Please see the &lt;A href="https://community.esri.com/t5/arcgis-survey123-blog/survey123-tricks-of-the-trade-repeats/ba-p/898041" target="_self"&gt;Survey123 Tricks of the Trade: Repeats&lt;/A&gt; blog post for some great info, as well as the &lt;A href="https://doc.arcgis.com/en/survey123/desktop/create-surveys/xlsformrepeats.htm#ESRI_SECTION1_045B883052D844E89F8EEFF8C2EA638A" target="_self"&gt;documentation on repeats&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;Hope this useful, please let me know if this works for you.&lt;/P&gt;&lt;P&gt;Best, Jim&lt;/P&gt;</description>
      <pubDate>Mon, 31 Jan 2022 03:50:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/summarize-or-count-repeats-inside-repeat/m-p/1138788#M40120</guid>
      <dc:creator>Jim-Moore</dc:creator>
      <dc:date>2022-01-31T03:50:59Z</dc:date>
    </item>
    <item>
      <title>Re: Summarize or Count Repeats inside Repeat</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/summarize-or-count-repeats-inside-repeat/m-p/1139708#M40202</link>
      <description>&lt;P&gt;Hi Jim,&lt;/P&gt;&lt;P&gt;That's great! Thank you for your help. Your solution is work. I will try to implement this concept for My real project.&lt;/P&gt;&lt;P&gt;Will update the result as soon as possible.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture228.JPG" style="width: 287px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/32910i5CA098E65523D878/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Capture228.JPG" alt="Capture228.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Feb 2022 04:08:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/summarize-or-count-repeats-inside-repeat/m-p/1139708#M40202</guid>
      <dc:creator>bhariadi</dc:creator>
      <dc:date>2022-02-02T04:08:39Z</dc:date>
    </item>
  </channel>
</rss>

