<?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>idea Sum values from multiple repeat fields in ArcGIS Survey123 Ideas</title>
    <link>https://community.esri.com/t5/arcgis-survey123-ideas/sum-values-from-multiple-repeat-fields/idi-p/939692</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Currently, it is possible to sum the values across one repeat using the syntax &lt;STRONG&gt;sum(${survey_question})&lt;/STRONG&gt; within your XLS form. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to see the ability to create an equation that can deal with multiple sum statements, allowing survey designers the ability to add/subtract the total value summed across one repeat field with the total value summed across another repeat field. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;For example:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;sum(${survey_question1}) + sum(${survey_question2})&lt;/P&gt;&lt;P&gt;sum(${survey_question1}) - sum(${survey_question2})&lt;/P&gt;&lt;P&gt;sum(${survey_question1}) + sum(${survey_question2}) - sum(${survey_question3})&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Esri Technical Support stated "&lt;SPAN style="font-size: 11.0pt;"&gt;since there is already a workflow to reach our end goal (able to sum one field) we don't think the enhancement will go far." I'm hoping that others out there would also like this ability so this gets some traction with the Survey123 development team. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 05 Nov 2019 17:36:59 GMT</pubDate>
    <dc:creator>erica_poisson</dc:creator>
    <dc:date>2019-11-05T17:36:59Z</dc:date>
    <item>
      <title>Sum values from multiple repeat fields</title>
      <link>https://community.esri.com/t5/arcgis-survey123-ideas/sum-values-from-multiple-repeat-fields/idi-p/939692</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Currently, it is possible to sum the values across one repeat using the syntax &lt;STRONG&gt;sum(${survey_question})&lt;/STRONG&gt; within your XLS form. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to see the ability to create an equation that can deal with multiple sum statements, allowing survey designers the ability to add/subtract the total value summed across one repeat field with the total value summed across another repeat field. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;For example:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;sum(${survey_question1}) + sum(${survey_question2})&lt;/P&gt;&lt;P&gt;sum(${survey_question1}) - sum(${survey_question2})&lt;/P&gt;&lt;P&gt;sum(${survey_question1}) + sum(${survey_question2}) - sum(${survey_question3})&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Esri Technical Support stated "&lt;SPAN style="font-size: 11.0pt;"&gt;since there is already a workflow to reach our end goal (able to sum one field) we don't think the enhancement will go far." I'm hoping that others out there would also like this ability so this gets some traction with the Survey123 development team. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Nov 2019 17:36:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-ideas/sum-values-from-multiple-repeat-fields/idi-p/939692</guid>
      <dc:creator>erica_poisson</dc:creator>
      <dc:date>2019-11-05T17:36:59Z</dc:date>
    </item>
    <item>
      <title>Re: Sum values from multiple repeat fields</title>
      <link>https://community.esri.com/t5/arcgis-survey123-ideas/sum-values-from-multiple-repeat-fields/idc-p/1005384#M1346</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/356939"&gt;@erica_poisson&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;I have the same issue, not sure if this is working. Is working for me, to sum repeated question.&lt;/P&gt;&lt;P&gt;However, I have an unresolved issue, I have 7 repeated integer questions, that I need to sum in order to estimate the mean.&amp;nbsp; I used the count&amp;nbsp; function so I can then estimate the mean = total sum / total count answer question.&lt;/P&gt;&lt;P&gt;The problem is that not always the&amp;nbsp;7 repeated questions will have a response, so that value will be NA or 0. I try to use &lt;SPAN&gt;coalesce to solve this issue, but is not working.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I don't want the 0 value counted in the count function towards estimating the mean.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I have try to get around this issue.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Example:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;coalesce(sum(${producto_1.1.1})+sum(${producto_1.1.2})+sum(${producto_1.1.3}),0)....&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;sum(coalesce(${producto_1.1.1},0))+sum(coalesce(${producto_1.1.2},0)).....&lt;/P&gt;&lt;P&gt;Maybe&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/16421"&gt;@DougBrowning&lt;/a&gt;&amp;nbsp;or&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/2929"&gt;@IsmaelChivite&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;have an idea?&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Federico&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 29 Nov 2020 15:45:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-ideas/sum-values-from-multiple-repeat-fields/idc-p/1005384#M1346</guid>
      <dc:creator>FedericoRiet_Sapriza</dc:creator>
      <dc:date>2020-11-29T15:45:26Z</dc:date>
    </item>
    <item>
      <title>Re: Sum values from multiple repeat fields</title>
      <link>https://community.esri.com/t5/arcgis-survey123-ideas/sum-values-from-multiple-repeat-fields/idc-p/1005526#M1347</link>
      <description>&lt;P&gt;I think you want&lt;/P&gt;&lt;P&gt;coalesce(sum(${producto_1.1.1}),0)+coalesce(sum(${producto_1.1.2}),0).....&lt;/P&gt;&lt;P&gt;I am also not sure Arc will let you have a . in the field name since it uses that in joins.&amp;nbsp; Not sure.&lt;/P&gt;&lt;P&gt;Hope that helps&lt;/P&gt;</description>
      <pubDate>Mon, 30 Nov 2020 15:16:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-ideas/sum-values-from-multiple-repeat-fields/idc-p/1005526#M1347</guid>
      <dc:creator>DougBrowning</dc:creator>
      <dc:date>2020-11-30T15:16:30Z</dc:date>
    </item>
    <item>
      <title>Re: Sum values from multiple repeat fields</title>
      <link>https://community.esri.com/t5/arcgis-survey123-ideas/sum-values-from-multiple-repeat-fields/idc-p/1006487#M1352</link>
      <description>&lt;P&gt;Hi &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;thanks for you response.&lt;/P&gt;&lt;P&gt;I try this, but still have issues with the formatting and the sum of the repeats.&lt;/P&gt;&lt;P&gt;When I choose "hidden" or "calculate" in the type column the calculation do not work.&lt;/P&gt;&lt;P&gt;I can't upload my XLSForm here for some reason.&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Federico&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sum repeats.jpg" style="width: 846px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/1394i49E02F33377AFFEC/image-size/large?v=v2&amp;amp;px=999" role="button" title="sum repeats.jpg" alt="sum repeats.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Dec 2020 00:49:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-ideas/sum-values-from-multiple-repeat-fields/idc-p/1006487#M1352</guid>
      <dc:creator>FedericoRiet_Sapriza</dc:creator>
      <dc:date>2020-12-03T00:49:23Z</dc:date>
    </item>
    <item>
      <title>Re: Sum values from multiple repeat fields</title>
      <link>https://community.esri.com/t5/arcgis-survey123-ideas/sum-values-from-multiple-repeat-fields/idc-p/1006611#M1354</link>
      <description>&lt;P&gt;What type is producto_1_1_1?&amp;nbsp; &amp;nbsp;I think seeing the form would help but I do not see an attachment option in the editor either.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There must be a way to attach right?&amp;nbsp; Weird&amp;nbsp; Maybe the 123 team knows how.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Dec 2020 14:24:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-ideas/sum-values-from-multiple-repeat-fields/idc-p/1006611#M1354</guid>
      <dc:creator>DougBrowning</dc:creator>
      <dc:date>2020-12-03T14:24:48Z</dc:date>
    </item>
    <item>
      <title>Re: Sum values from multiple repeat fields</title>
      <link>https://community.esri.com/t5/arcgis-survey123-ideas/sum-values-from-multiple-repeat-fields/idc-p/1006622#M1355</link>
      <description>&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;I have created a new post with the XSLForm attached&lt;/P&gt;&lt;P&gt;here is the link:&amp;nbsp;&lt;A title="Link to the new post" href="https://community.esri.com/t5/arcgis-survey123-questions/sum-and-multiple-repeat-question-mean-estimate/td-p/1006620" target="_blank" rel="noopener"&gt;https://community.esri.com/t5/arcgis-survey123-questions/sum-and-multiple-repeat-question-mean-estimate/td-p/1006620&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Federico&lt;/P&gt;</description>
      <pubDate>Thu, 03 Dec 2020 15:07:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-ideas/sum-values-from-multiple-repeat-fields/idc-p/1006622#M1355</guid>
      <dc:creator>FedericoRiet_Sapriza</dc:creator>
      <dc:date>2020-12-03T15:07:15Z</dc:date>
    </item>
    <item>
      <title>Re: Sum values from multiple repeat fields</title>
      <link>https://community.esri.com/t5/arcgis-survey123-ideas/sum-values-from-multiple-repeat-fields/idc-p/1040550#M1466</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/205995"&gt;@FedericoRiet_Sapriza&lt;/a&gt;&amp;nbsp;-&lt;/P&gt;&lt;P&gt;I am way late to respond here, but in case you are still having issues, this is how I've dealt with a similar situation to what you're describing.&lt;/P&gt;&lt;P&gt;Within a repeat I have 3 questions that could all be answered, or only one or two could be answered. Each of the 3 questions could write a value to one of ~93 unique fields depending on a previous selection. Then, to get a sum I use a series of coalesce statements within my repeat. Outside of my repeat, I then use a sum on the coalesced values. This works well and I would imagine it would also work for your mean calculation. I've included an example below.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Inside Repeat (integer type):&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Field 1 = Violation1aFirst (&lt;EM&gt;called w/ relevant statement&lt;/EM&gt;)&lt;/P&gt;&lt;P&gt;Field 2 = Violation1aSecond&amp;nbsp;(&lt;EM&gt;called w/ relevant statement&lt;/EM&gt;)&lt;/P&gt;&lt;P&gt;Field 3 = Violation1aThird&amp;nbsp;(&lt;EM&gt;called w/ relevant statement&lt;/EM&gt;)&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Inside Repeat, to get valid value (calculate type):&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Field = CoalesceVio1a&lt;/P&gt;&lt;P&gt;coalesce(${Violation1aFirst},0) + coalesce(${Violation1aSecond},0) + coalesce(${Violation1aThird},0)&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Outside Repeat to get sum across repeats (integer type):&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;sum(${CoalesceVio1a})&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This process results in a lot of fields within my survey (all hidden based on relevance or because "calculate" type). All total, I have 526 rows in my XLS form dedicated to dealing with these calculations.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Mar 2021 12:32:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-ideas/sum-values-from-multiple-repeat-fields/idc-p/1040550#M1466</guid>
      <dc:creator>erica_poisson</dc:creator>
      <dc:date>2021-03-25T12:32:43Z</dc:date>
    </item>
  </channel>
</rss>

