<?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: Calculating a final total from repeats, Survey123? in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/calculating-a-final-total-from-repeats-survey123/m-p/787217#M7383</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi James Tedrick&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a limitation to perform the sum ($ {question}) function with hidden (relevant) questions?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a question outside the repeat (question_3), with a function to add the values of a question into the repeat (sum ($ {question_2}).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Additionally question_2 is hidden based on another question ($ {question_1} = 'AAA').&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If question_1 is different 'AAA', question_2 will have no value, therefore question_3 will not return any value.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This behavior generates that if in question_5 we want to add question_3 with question_4, question_5 does not return any value.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Whereas all questions are 'interger'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 28 Nov 2019 15:26:21 GMT</pubDate>
    <dc:creator>FernandoTroncoso</dc:creator>
    <dc:date>2019-11-28T15:26:21Z</dc:date>
    <item>
      <title>Calculating a final total from repeats, Survey123?</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/calculating-a-final-total-from-repeats-survey123/m-p/787209#M7375</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know that it is possible to have a final total at the bottom of a survey based on a group of questions. I have a repeat group and I'd like to have a total to calculate all the entries from the repeats. What is the proper syntax for this?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you!&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jan 2017 18:36:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/calculating-a-final-total-from-repeats-survey123/m-p/787209#M7375</guid>
      <dc:creator>SunnyF</dc:creator>
      <dc:date>2017-01-30T18:36:29Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating a final total from repeats, Survey123?</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/calculating-a-final-total-from-repeats-survey123/m-p/787210#M7376</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi! Thanks for your feedback. This is in our&amp;nbsp; back-log at the&amp;nbsp; moment.&amp;nbsp; Please if not already vote&amp;nbsp; for and comment on this idea: &lt;A href="https://community.esri.com/ideas/12210" target="_blank"&gt;https://community.esri.com/ideas/12210&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Jun 2021 08:47:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/calculating-a-final-total-from-repeats-survey123/m-p/787210#M7376</guid>
      <dc:creator>IsmaelChivite</dc:creator>
      <dc:date>2021-06-22T08:47:14Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating a final total from repeats, Survey123?</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/calculating-a-final-total-from-repeats-survey123/m-p/787211#M7377</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Ismael,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I went and voted for it as a future built-in feature. In the meantime, are you aware of any workaround syntax?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Sunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Jan 2017 21:08:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/calculating-a-final-total-from-repeats-survey123/m-p/787211#M7377</guid>
      <dc:creator>SunnyF</dc:creator>
      <dc:date>2017-01-31T21:08:08Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating a final total from repeats, Survey123?</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/calculating-a-final-total-from-repeats-survey123/m-p/787212#M7378</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny. No workarounds that I am aware of. Sorry.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Jan 2017 22:35:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/calculating-a-final-total-from-repeats-survey123/m-p/787212#M7378</guid>
      <dc:creator>IsmaelChivite</dc:creator>
      <dc:date>2017-01-31T22:35:49Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating a final total from repeats, Survey123?</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/calculating-a-final-total-from-repeats-survey123/m-p/787213#M7379</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a bit of a clunky workaround. Instead of having your questions in a repeat, you have to duplicate them as many times in the main survey as you think there could be possible responses. So rather than having species name and count in a repeat I have Species1Name, Species1Count then Species2Name, Species2Count and so on up to a couple of dozen species. I then put relevant restrictions on each one so that the species 2 fields only appear if there are values for species 1. It then means you can use the count field in calculations, though it means you end up with a very long calculation that capture the values from all the fields. It also adds lots of fields to your main form and I find if any of the repeat fields have long choice lists (as my species field does) then the more iterations you add of a field looking up the long list, the slower the form is to run to the point where my form refuses to run after about 4 iterations of the species field which is looking up an external choice list of a couple of thousand choices. As I said, a bit clunky but it works if you don't need to have too many repeated records, too many fields in your repeats or too many choices for one of your fields in the repeat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;James.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Mar 2017 01:21:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/calculating-a-final-total-from-repeats-survey123/m-p/787213#M7379</guid>
      <dc:creator>BiosisGIS</dc:creator>
      <dc:date>2017-03-27T01:21:40Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating a final total from repeats, Survey123?</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/calculating-a-final-total-from-repeats-survey123/m-p/787214#M7380</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'd definitely use the feature of getting a sum from within a repeated group. Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Sep 2017 17:59:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/calculating-a-final-total-from-repeats-survey123/m-p/787214#M7380</guid>
      <dc:creator>deleted-user-5MTyXPMg0TSw</dc:creator>
      <dc:date>2017-09-01T17:59:17Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating a final total from repeats, Survey123?</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/calculating-a-final-total-from-repeats-survey123/m-p/787215#M7381</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rosemary,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This was actually added over the summer to Survey123 - see the "Repeat Aggregated Functions" topic in&amp;nbsp;&lt;A href="https://community.esri.com/groups/survey123/blog/2017/06/02/world-milk-day-release-21"&gt;https://community.esri.com/groups/survey123/blog/2017/06/02/world-milk-day-release-21&lt;/A&gt;&amp;nbsp;as well as&amp;nbsp;&lt;A class="link-titled" href="http://doc.arcgis.com/en/survey123/desktop/create-surveys/xlsformrepeats.htm#ESRI_SECTION1_045B883052D844E89F8EEFF8C2EA638A" title="http://doc.arcgis.com/en/survey123/desktop/create-surveys/xlsformrepeats.htm#ESRI_SECTION1_045B883052D844E89F8EEFF8C2EA638A"&gt;Repeats—Survey123 for ArcGIS | ArcGIS&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Sep 2017 18:18:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/calculating-a-final-total-from-repeats-survey123/m-p/787215#M7381</guid>
      <dc:creator>JamesTedrick</dc:creator>
      <dc:date>2017-09-01T18:18:00Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating a final total from repeats, Survey123?</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/calculating-a-final-total-from-repeats-survey123/m-p/787216#M7382</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks so much! I had seen SUM in the list and gave it a try but it didn't work. User error! I used regular parentheses instead of curly brackets. Thanks again -- it works like a charm!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Sep 2017 19:49:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/calculating-a-final-total-from-repeats-survey123/m-p/787216#M7382</guid>
      <dc:creator>deleted-user-5MTyXPMg0TSw</dc:creator>
      <dc:date>2017-09-01T19:49:26Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating a final total from repeats, Survey123?</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/calculating-a-final-total-from-repeats-survey123/m-p/787217#M7383</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi James Tedrick&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a limitation to perform the sum ($ {question}) function with hidden (relevant) questions?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a question outside the repeat (question_3), with a function to add the values of a question into the repeat (sum ($ {question_2}).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Additionally question_2 is hidden based on another question ($ {question_1} = 'AAA').&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If question_1 is different 'AAA', question_2 will have no value, therefore question_3 will not return any value.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This behavior generates that if in question_5 we want to add question_3 with question_4, question_5 does not return any value.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Whereas all questions are 'interger'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Nov 2019 15:26:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/calculating-a-final-total-from-repeats-survey123/m-p/787217#M7383</guid>
      <dc:creator>FernandoTroncoso</dc:creator>
      <dc:date>2019-11-28T15:26:21Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating a final total from repeats, Survey123?</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/calculating-a-final-total-from-repeats-survey123/m-p/787218#M7384</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Fernando,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As described in the Empty Values section of&amp;nbsp;&lt;A class="link-titled" href="https://doc.arcgis.com/en/survey123/desktop/create-surveys/xlsformformulas.htm#ESRI_SECTION1_2954BF95CF674951AE9691A656CF157C" title="https://doc.arcgis.com/en/survey123/desktop/create-surveys/xlsformformulas.htm#ESRI_SECTION1_2954BF95CF674951AE9691A656CF157C"&gt;Formulas—Survey123 for ArcGIS | Documentation&lt;/A&gt;&amp;nbsp;, if a question with no value is involved in a calculation, the result is no value. &amp;nbsp;If you have a question with a possibly null value in a formula, I would recommend using the coalesce() function to test for null and provide a default value if it is null. &amp;nbsp;For addition, that default value normally is 0 (as any value +0 is the original value).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Dec 2019 20:49:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/calculating-a-final-total-from-repeats-survey123/m-p/787218#M7384</guid>
      <dc:creator>JamesTedrick</dc:creator>
      <dc:date>2019-12-02T20:49:55Z</dc:date>
    </item>
  </channel>
</rss>

