<?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: relevant calculated fields are returning 0.00 when there is nothing to calculate in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/relevant-calculated-fields-are-returning-0-00-when/m-p/857909#M25188</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You should be able to wrap the calculation in an if statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;eg&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(${no_sample}!='',&lt;EM&gt;calculation&lt;/EM&gt;,'')&lt;/P&gt;&lt;P&gt;This basically means that if the field ${no_sample} is not empty, then the calculation is performed, otherwise the field is blank.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or if you want it to only calculate when a certain option is chosen&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(${no_sample}='&lt;EM&gt;option1&lt;/EM&gt;',&lt;EM&gt;calculation&lt;/EM&gt;,'')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 23 Aug 2018 02:56:11 GMT</pubDate>
    <dc:creator>markcain</dc:creator>
    <dc:date>2018-08-23T02:56:11Z</dc:date>
    <item>
      <title>relevant calculated fields are returning 0.00 when there is nothing to calculate and should be NULL</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/relevant-calculated-fields-are-returning-0-00-when/m-p/857905#M25184</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In the following screenshot, the&amp;nbsp;fields 5 &amp;amp; 6 are calculated based on data in fields 1-4. The whole group (fields1-6) is relevant as to whether or not a sample is collected. But, when no sample is collected, the calculated fields are returning 0.00. I would like them to be blank. Is there a way to control (cancel) the calculation when the relevant expression is not met?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="420353" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/420353_pastedImage_2.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Aug 2018 20:01:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/relevant-calculated-fields-are-returning-0-00-when/m-p/857905#M25184</guid>
      <dc:creator>LynnBerni</dc:creator>
      <dc:date>2018-08-22T20:01:12Z</dc:date>
    </item>
    <item>
      <title>Re: relevant calculated fields are returning 0.00 when there is nothing to calculate</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/relevant-calculated-fields-are-returning-0-00-when/m-p/857906#M25185</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Lynn,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am seeing that calculate questions are submitting their calculations when not relevant. &amp;nbsp;However, it I'm not seeing the effect when the items are in a group. &amp;nbsp;Can you share the survey or the part of the survey experiencing the issue?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Aug 2018 20:39:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/relevant-calculated-fields-are-returning-0-00-when/m-p/857906#M25185</guid>
      <dc:creator>JamesTedrick</dc:creator>
      <dc:date>2018-08-22T20:39:37Z</dc:date>
    </item>
    <item>
      <title>Re: relevant calculated fields are returning 0.00 when there is nothing to calculate</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/relevant-calculated-fields-are-returning-0-00-when/m-p/857907#M25186</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi James,&lt;/P&gt;&lt;P&gt;Here's a &lt;A href="https://drive.google.com/file/d/1y9y6_oQDKd9LbcmI1xZ1qtf2E4q_h4Sp/view?usp=sharing"&gt;link&lt;/A&gt; to the xls form. It's the "Sample Analysis" group.&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Aug 2018 20:50:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/relevant-calculated-fields-are-returning-0-00-when/m-p/857907#M25186</guid>
      <dc:creator>LynnBerni</dc:creator>
      <dc:date>2018-08-22T20:50:20Z</dc:date>
    </item>
    <item>
      <title>Re: relevant calculated fields are returning 0.00 when there is nothing to calculate</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/relevant-calculated-fields-are-returning-0-00-when/m-p/857908#M25187</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Lynn,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This doesn't appear to be the right survey- I'm not seeing the group you refer to.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Aug 2018 01:25:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/relevant-calculated-fields-are-returning-0-00-when/m-p/857908#M25187</guid>
      <dc:creator>JamesTedrick</dc:creator>
      <dc:date>2018-08-23T01:25:42Z</dc:date>
    </item>
    <item>
      <title>Re: relevant calculated fields are returning 0.00 when there is nothing to calculate</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/relevant-calculated-fields-are-returning-0-00-when/m-p/857909#M25188</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You should be able to wrap the calculation in an if statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;eg&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(${no_sample}!='',&lt;EM&gt;calculation&lt;/EM&gt;,'')&lt;/P&gt;&lt;P&gt;This basically means that if the field ${no_sample} is not empty, then the calculation is performed, otherwise the field is blank.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or if you want it to only calculate when a certain option is chosen&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(${no_sample}='&lt;EM&gt;option1&lt;/EM&gt;',&lt;EM&gt;calculation&lt;/EM&gt;,'')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Aug 2018 02:56:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/relevant-calculated-fields-are-returning-0-00-when/m-p/857909#M25188</guid>
      <dc:creator>markcain</dc:creator>
      <dc:date>2018-08-23T02:56:11Z</dc:date>
    </item>
    <item>
      <title>Re: relevant calculated fields are returning 0.00 when there is nothing to calculate</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/relevant-calculated-fields-are-returning-0-00-when/m-p/857910#M25189</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks Mark, tried the if statement and the field is&amp;nbsp;still being populated with 0.&amp;nbsp; This field just doesn't want to be NULL!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Aug 2018 19:26:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/relevant-calculated-fields-are-returning-0-00-when/m-p/857910#M25189</guid>
      <dc:creator>LynnBerni</dc:creator>
      <dc:date>2018-08-23T19:26:07Z</dc:date>
    </item>
    <item>
      <title>Re: relevant calculated fields are returning 0.00 when there is nothing to calculate</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/relevant-calculated-fields-are-returning-0-00-when/m-p/857911#M25190</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi James,&lt;/P&gt;&lt;P&gt;That's the one, the group starts on line&amp;nbsp;19 of the sheet.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Aug 2018 21:21:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/relevant-calculated-fields-are-returning-0-00-when/m-p/857911#M25190</guid>
      <dc:creator>LynnBerni</dc:creator>
      <dc:date>2018-08-23T21:21:29Z</dc:date>
    </item>
    <item>
      <title>Re: relevant calculated fields are returning 0.00 when there is nothing to calculate</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/relevant-calculated-fields-are-returning-0-00-when/m-p/857912#M25191</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, I missed it in my review. &amp;nbsp;In looking through what's occurring, it appears there is a change in how null values are being handled- before, they would have prevented the pulldata() function from running. &amp;nbsp;I've filed an issue to look into this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Aug 2018 22:16:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/relevant-calculated-fields-are-returning-0-00-when/m-p/857912#M25191</guid>
      <dc:creator>JamesTedrick</dc:creator>
      <dc:date>2018-08-23T22:16:44Z</dc:date>
    </item>
    <item>
      <title>Re: relevant calculated fields are returning 0.00 when there is nothing to calculate and should be NULL</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/relevant-calculated-fields-are-returning-0-00-when/m-p/857913#M25192</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&amp;nbsp;&lt;A href="https://community.esri.com/migrated-users/3263"&gt;James Tedrick&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;Have there been any updates on this&amp;nbsp;issue?&amp;nbsp; Or maybe other suggestions I could try? It continues to plague us.&lt;/P&gt;&lt;P&gt;Thanks!&lt;BR /&gt;Lynn&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Jan 2019 16:54:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/relevant-calculated-fields-are-returning-0-00-when/m-p/857913#M25192</guid>
      <dc:creator>LynnBerni</dc:creator>
      <dc:date>2019-01-16T16:54:52Z</dc:date>
    </item>
    <item>
      <title>Re: relevant calculated fields are returning 0.00 when there is nothing to calculate and should be NULL</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/relevant-calculated-fields-are-returning-0-00-when/m-p/857914#M25193</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;is the table a .dbf or in a file geodatabase?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Jan 2019 17:11:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/relevant-calculated-fields-are-returning-0-00-when/m-p/857914#M25193</guid>
      <dc:creator>SteveLynch</dc:creator>
      <dc:date>2019-01-16T17:11:31Z</dc:date>
    </item>
    <item>
      <title>Re: relevant calculated fields are returning 0.00 when there is nothing to calculate and should be NULL</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/relevant-calculated-fields-are-returning-0-00-when/m-p/857915#M25194</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;dfb in egdb&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Jan 2019 17:13:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/relevant-calculated-fields-are-returning-0-00-when/m-p/857915#M25194</guid>
      <dc:creator>LynnBerni</dc:creator>
      <dc:date>2019-01-16T17:13:13Z</dc:date>
    </item>
    <item>
      <title>Re: relevant calculated fields are returning 0.00 when there is nothing to calculate and should be NULL</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/relevant-calculated-fields-are-returning-0-00-when/m-p/857916#M25195</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;shapefile, which uses .dbf, converts null to zero.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To test, create a field in a fgdb that has nulls. Use CopyFeatures and save it to shapefile and you'll notice the zeros.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Jan 2019 17:18:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/relevant-calculated-fields-are-returning-0-00-when/m-p/857916#M25195</guid>
      <dc:creator>SteveLynch</dc:creator>
      <dc:date>2019-01-16T17:18:12Z</dc:date>
    </item>
    <item>
      <title>Re: relevant calculated fields are returning 0.00 when there is nothing to calculate and should be NULL</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/relevant-calculated-fields-are-returning-0-00-when/m-p/857917#M25196</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Lynn, it sounds like relying on null values should be avoid in that case.&amp;nbsp; If the data you are using are counts, put in a count value that isn't possible... you could go 'old school' and use -999 or some equivalent scaled variant.&amp;nbsp; Any&amp;nbsp;&lt;/P&gt;&lt;P&gt;observation which is a count cannot possibly have a negative number&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Jan 2019 19:15:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/relevant-calculated-fields-are-returning-0-00-when/m-p/857917#M25196</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2019-01-16T19:15:10Z</dc:date>
    </item>
    <item>
      <title>Re: relevant calculated fields are returning 0.00 when there is nothing to calculate and should be NULL</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/relevant-calculated-fields-are-returning-0-00-when/m-p/857918#M25197</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Dan, that's an excellent point!&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Jan 2019 20:38:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/relevant-calculated-fields-are-returning-0-00-when/m-p/857918#M25197</guid>
      <dc:creator>LynnBerni</dc:creator>
      <dc:date>2019-01-16T20:38:13Z</dc:date>
    </item>
  </channel>
</rss>

