<?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: Survey123 - Calculate sum of fields that have relevant formulas set? in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/survey123-calculate-sum-of-fields-that-have/m-p/1199113#M44088</link>
    <description>&lt;P&gt;I think you are having the same issue as this post&amp;nbsp;&amp;nbsp;&lt;A href="https://community.esri.com/t5/arcgis-survey123-questions/constrain-total-value-of-repeat-entries/m-p/1195098#M43899" target="_blank" rel="noopener"&gt;https://community.esri.com/t5/arcgis-survey123-questions/constrain-total-value-of-repeat-entries/m-p/1195098#M43899&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Basically use coalesce or hidden.&lt;/P&gt;&lt;P&gt;Also I would use the selected() method for the relevant not regex.&amp;nbsp; See&amp;nbsp;&lt;A href="https://community.esri.com/t5/arcgis-survey123-questions/using-choice-filter-with-a-select-multiple/td-p/731024" target="_blank" rel="noopener"&gt;https://community.esri.com/t5/arcgis-survey123-questions/using-choice-filter-with-a-select-multiple/td-p/731024&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Hope that helps&lt;/P&gt;</description>
    <pubDate>Wed, 03 Aug 2022 19:21:37 GMT</pubDate>
    <dc:creator>DougBrowning</dc:creator>
    <dc:date>2022-08-03T19:21:37Z</dc:date>
    <item>
      <title>Survey123 - Calculate sum of fields that have relevant formulas set?</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/survey123-calculate-sum-of-fields-that-have/m-p/1199094#M44087</link>
      <description>&lt;P&gt;Hello! I am attempting to calculate a sum of fields in Survey123 Connect. I have a list of decimal fields that represent the "total of x species" seen in the field. These fields are set up with a relevant formula to only appear if the species is seen (determined from a select_multiple field). The default value for these fields is 0. I also want to also calculate a sum of all the species totals. What I'm finding is that if one of total_SPECIES fields doesn't appear in the survey, the total won't be calculated.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I found this blog and tried the default value technique, but the relevancy seems to be making it weird:&amp;nbsp;&lt;A href="https://support.esri.com/en/technical-article/000022441" target="_blank"&gt;https://support.esri.com/en/technical-article/000022441&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Here is a screenshot of my spreadsheet:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mrosekulick_0-1659553068101.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/47709i43A6CEDAA801F2C2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mrosekulick_0-1659553068101.png" alt="mrosekulick_0-1659553068101.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;And a screenshot of my form:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mrosekulick_1-1659553119190.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/47710iCF98A2A624D5578D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mrosekulick_1-1659553119190.png" alt="mrosekulick_1-1659553119190.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I didn't create a calculation for the whole list of species yet, just to make sure it works before I spend too much time.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the help!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Aug 2022 19:02:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/survey123-calculate-sum-of-fields-that-have/m-p/1199094#M44087</guid>
      <dc:creator>mrosekulick</dc:creator>
      <dc:date>2022-08-03T19:02:11Z</dc:date>
    </item>
    <item>
      <title>Re: Survey123 - Calculate sum of fields that have relevant formulas set?</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/survey123-calculate-sum-of-fields-that-have/m-p/1199113#M44088</link>
      <description>&lt;P&gt;I think you are having the same issue as this post&amp;nbsp;&amp;nbsp;&lt;A href="https://community.esri.com/t5/arcgis-survey123-questions/constrain-total-value-of-repeat-entries/m-p/1195098#M43899" target="_blank" rel="noopener"&gt;https://community.esri.com/t5/arcgis-survey123-questions/constrain-total-value-of-repeat-entries/m-p/1195098#M43899&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Basically use coalesce or hidden.&lt;/P&gt;&lt;P&gt;Also I would use the selected() method for the relevant not regex.&amp;nbsp; See&amp;nbsp;&lt;A href="https://community.esri.com/t5/arcgis-survey123-questions/using-choice-filter-with-a-select-multiple/td-p/731024" target="_blank" rel="noopener"&gt;https://community.esri.com/t5/arcgis-survey123-questions/using-choice-filter-with-a-select-multiple/td-p/731024&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Hope that helps&lt;/P&gt;</description>
      <pubDate>Wed, 03 Aug 2022 19:21:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/survey123-calculate-sum-of-fields-that-have/m-p/1199113#M44088</guid>
      <dc:creator>DougBrowning</dc:creator>
      <dc:date>2022-08-03T19:21:37Z</dc:date>
    </item>
    <item>
      <title>Re: Survey123 - Calculate sum of fields that have relevant formulas set?</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/survey123-calculate-sum-of-fields-that-have/m-p/1205649#M44435</link>
      <description>&lt;P&gt;Got delayed on this project, but coalesce worked! Thank you!&lt;/P&gt;</description>
      <pubDate>Tue, 23 Aug 2022 23:28:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/survey123-calculate-sum-of-fields-that-have/m-p/1205649#M44435</guid>
      <dc:creator>mrosekulick</dc:creator>
      <dc:date>2022-08-23T23:28:09Z</dc:date>
    </item>
  </channel>
</rss>

