<?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: Calculate Field Does Not Work With Empty Values in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/calculate-field-does-not-work-with-empty-values/m-p/1063351#M34955</link>
    <description>&lt;P&gt;Thank you for your response! I just tried this and it does pre-populate the integer fields with zeros in the survey itself, but the fields still show up as blank in the data table and it still does not&amp;nbsp; calculate the &lt;EM&gt;totalvictims&lt;/EM&gt; field.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 31 May 2021 18:43:46 GMT</pubDate>
    <dc:creator>Anonymous User</dc:creator>
    <dc:date>2021-05-31T18:43:46Z</dc:date>
    <item>
      <title>Calculate Field Does Not Work With Empty Values</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/calculate-field-does-not-work-with-empty-values/m-p/1063311#M34949</link>
      <description>&lt;P&gt;Please see attached screenshot from my survey XLSForm for our damage assessment survey. I have a multiple-choice question (select_multiple victimtype). For each selection made in this multiple-choice question, an integer question opens up to enter the victim count (greenvictimcount, yellowvictimcount, etc.). I also have a calculate field (totalvictims) that is supposed to add up all four integer fields to get the total number of victims, across all four victim types. This 'totalvictims' field has been blank in all the test surveys I took and I just finally figured out the reason - if ANY of the integer fields are blank in the individual survey, the totavictims field will not calculate, reasons explained at this link, under "Empty Values" heading:&amp;nbsp;&lt;A href="https://doc.arcgis.com/en/survey123/desktop/create-surveys/xlsformformulas.htm#ESRI_SECTION1_DB5A29AC645F4AE585D7CEA9E6D5A36B" target="_blank" rel="noopener"&gt;https://doc.arcgis.com/en/survey123/desktop/create-surveys/xlsformformulas.htm#ESRI_SECTION1_DB5A29AC645F4AE585D7CEA9E6D5A36B&lt;/A&gt;.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any way to make this field calculate if some of the integer questions are blank (it would rarely be the case that all four victim types are selected in the same survey)?? Is there a way to have the blank integer questions assigned a zero for the purpose of the calculation?&lt;/P&gt;&lt;P&gt;I also attached the screenshot of the data table that shows the totalvictims field blank across the board.&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Mon, 31 May 2021 15:37:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/calculate-field-does-not-work-with-empty-values/m-p/1063311#M34949</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2021-05-31T15:37:54Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Field Does Not Work With Empty Values</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/calculate-field-does-not-work-with-empty-values/m-p/1063324#M34952</link>
      <description>&lt;P&gt;I would set the default value to 0, then none of your values would be blank.&lt;/P&gt;</description>
      <pubDate>Mon, 31 May 2021 17:04:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/calculate-field-does-not-work-with-empty-values/m-p/1063324#M34952</guid>
      <dc:creator>SarahHartholt</dc:creator>
      <dc:date>2021-05-31T17:04:25Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Field Does Not Work With Empty Values</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/calculate-field-does-not-work-with-empty-values/m-p/1063351#M34955</link>
      <description>&lt;P&gt;Thank you for your response! I just tried this and it does pre-populate the integer fields with zeros in the survey itself, but the fields still show up as blank in the data table and it still does not&amp;nbsp; calculate the &lt;EM&gt;totalvictims&lt;/EM&gt; field.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 31 May 2021 18:43:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/calculate-field-does-not-work-with-empty-values/m-p/1063351#M34955</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2021-05-31T18:43:46Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Field Does Not Work With Empty Values</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/calculate-field-does-not-work-with-empty-values/m-p/1063513#M34971</link>
      <description>&lt;P&gt;OK, I figured it out thanks to this post:&amp;nbsp;&lt;A href="https://community.esri.com/t5/arcgis-survey123-questions/survey123-calculations-not-calculating/m-p/874070" target="_blank"&gt;https://community.esri.com/t5/arcgis-survey123-questions/survey123-calculations-not-calculating/m-p/874070&lt;/A&gt;&lt;/P&gt;&lt;P&gt;The solution was to use the&amp;nbsp;&lt;SPAN&gt;coalesce() function to catch null values and substitute a neutral (0) value.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Jun 2021 12:42:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/calculate-field-does-not-work-with-empty-values/m-p/1063513#M34971</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2021-06-01T12:42:26Z</dc:date>
    </item>
  </channel>
</rss>

