<?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: Updating calculation from various fields in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/updating-calculation-from-various-fields/m-p/822341#M16107</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi. If any of the input values in your formula is null, the output will be null. To work around this you can:&lt;/P&gt;&lt;P&gt;* Set a default value of 0 to all questions (using the default XLSForm column)&lt;/P&gt;&lt;P&gt;* Modify your expression as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&lt;/P&gt;&lt;P&gt;coalesce(${item1},0) + coalesce(${&lt;SPAN&gt;item&lt;/SPAN&gt;2},0)&amp;nbsp; + coalesce(${&lt;SPAN&gt;item&lt;/SPAN&gt;3},0) ...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 03 Dec 2019 18:05:05 GMT</pubDate>
    <dc:creator>IsmaelChivite</dc:creator>
    <dc:date>2019-12-03T18:05:05Z</dc:date>
    <item>
      <title>Updating calculation from various fields</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/updating-calculation-from-various-fields/m-p/822340#M16106</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a question for showing calculation result while data is being entered.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is a label showing 'Total Value' where the values are added from item 1 - 10.&amp;nbsp;My current calculation is&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;${item1} + ${&lt;SPAN&gt;item&lt;/SPAN&gt;2}&amp;nbsp; + ${&lt;SPAN&gt;item&lt;/SPAN&gt;3} +${&lt;SPAN&gt;item&lt;/SPAN&gt;4} + ${&lt;SPAN&gt;item&lt;/SPAN&gt;5}&amp;nbsp; + ${&lt;SPAN&gt;item&lt;/SPAN&gt;6}+${&lt;SPAN&gt;item&lt;/SPAN&gt;7} + ${&lt;SPAN&gt;item&lt;/SPAN&gt;8}&amp;nbsp; + ${&lt;SPAN&gt;item&lt;/SPAN&gt;9}+${&lt;SPAN&gt;item&lt;/SPAN&gt;10}.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem with this method is that the Total value is not updated until all 10 values are added.&amp;nbsp;Users may enter values for all 10 items or maybe only&amp;nbsp;8 or even 5. How can I make the total value updated as each item value is entered, not waiting until the last item value is entered?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I could use repeat and&amp;nbsp; using sum for item but this will create nested repeat for my survey, and I cannot use as this survey needs to be opened through web browser.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Dec 2019 17:58:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/updating-calculation-from-various-fields/m-p/822340#M16106</guid>
      <dc:creator>KerryKang1</dc:creator>
      <dc:date>2019-12-03T17:58:26Z</dc:date>
    </item>
    <item>
      <title>Re: Updating calculation from various fields</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/updating-calculation-from-various-fields/m-p/822341#M16107</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi. If any of the input values in your formula is null, the output will be null. To work around this you can:&lt;/P&gt;&lt;P&gt;* Set a default value of 0 to all questions (using the default XLSForm column)&lt;/P&gt;&lt;P&gt;* Modify your expression as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&lt;/P&gt;&lt;P&gt;coalesce(${item1},0) + coalesce(${&lt;SPAN&gt;item&lt;/SPAN&gt;2},0)&amp;nbsp; + coalesce(${&lt;SPAN&gt;item&lt;/SPAN&gt;3},0) ...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Dec 2019 18:05:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/updating-calculation-from-various-fields/m-p/822341#M16107</guid>
      <dc:creator>IsmaelChivite</dc:creator>
      <dc:date>2019-12-03T18:05:05Z</dc:date>
    </item>
    <item>
      <title>Re: Updating calculation from various fields</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/updating-calculation-from-various-fields/m-p/822342#M16108</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ismael, this method worked perfect. Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Dec 2019 18:16:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/updating-calculation-from-various-fields/m-p/822342#M16108</guid>
      <dc:creator>KerryKang1</dc:creator>
      <dc:date>2019-12-03T18:16:02Z</dc:date>
    </item>
  </channel>
</rss>

