<?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: Calculation from multiple fields' values in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/calculation-from-multiple-fields-values/m-p/1631089#M63241</link>
    <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/719045"&gt;@j-bromp&lt;/a&gt;&amp;nbsp;'s solution is the way to go as there will be no answers if the questions aren't relevant, but an alternative option would be to a make all the acreage questions not visible until the conditions are met instead of not relevant. Then your original total calculation should work.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="NealKittelson_0-1751983383107.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/136078i6518A9CBCA735BE0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="NealKittelson_0-1751983383107.png" alt="NealKittelson_0-1751983383107.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 08 Jul 2025 14:04:26 GMT</pubDate>
    <dc:creator>Neal_t_k</dc:creator>
    <dc:date>2025-07-08T14:04:26Z</dc:date>
    <item>
      <title>Calculation from multiple fields' values</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/calculation-from-multiple-fields-values/m-p/1631051#M63236</link>
      <description>&lt;P&gt;Hi GIS friends,&lt;/P&gt;&lt;P&gt;This is how I want the structure of my survey to be:&amp;nbsp;&lt;/P&gt;&lt;P&gt;A multiselect question with the five options (maize, soya, rice, groundnuts, other).&lt;/P&gt;&lt;P&gt;Upon selection, a hidden question shows up asking for the the number of acres cultivated for the respective crops.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Afterwards, there is a total acreage question where all the acreages are summed up and displayed as read only.&lt;/P&gt;&lt;P&gt;Now here is the problem: the total acreages value ONLY shows when all of the options in the multiselect question are checked and their corresponding number of acres values are entered. If even one of the multiselect options are left unchecked, the total acreage value does not show. That defeats the purpose of the multiselect question as well as the functionality to only show the relevant corresponding question after a selection is made.&lt;/P&gt;&lt;P&gt;Initially, I thought it was because the algorithm was reading the empty acre value fields as null so I set all of them to be 0 by default. But that didn't work either.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would appreciate your assistance.&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;P.S: attached is a copy of my survey xls.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Jul 2025 11:15:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/calculation-from-multiple-fields-values/m-p/1631051#M63236</guid>
      <dc:creator>KayManuel</dc:creator>
      <dc:date>2025-07-08T11:15:14Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation from multiple fields' values</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/calculation-from-multiple-fields-values/m-p/1631062#M63237</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/469602"&gt;@KayManuel&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;Thanks for the copy of the survey. I think this should sort it for you:&lt;BR /&gt;&lt;BR /&gt;round(((if(string-length(${groundnutcultivated})&amp;gt;0, ${groundnutcultivated}, 0)) + (if(string-length(${maizecultivated})&amp;gt;0, ${maizecultivated}, 0)) + (if(string-length(${ricecultivated})&amp;gt;0, ${ricecultivated}, 0)) + (if(string-length(${soyacultivated})&amp;gt;0, ${soyacultivated}, 0)) +(if(string-length(${othercultivated})&amp;gt;0, ${othercultivated}, 0))),2)&lt;BR /&gt;&lt;BR /&gt;also make sure to set the bind::esri:parameters to calculationMode=always&lt;BR /&gt;&lt;BR /&gt;below is a screenshot of it in action:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jbromp_0-1751976385804.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/136075i7A713D3A09822BDD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jbromp_0-1751976385804.png" alt="jbromp_0-1751976385804.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Jul 2025 12:08:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/calculation-from-multiple-fields-values/m-p/1631062#M63237</guid>
      <dc:creator>j-bromp</dc:creator>
      <dc:date>2025-07-08T12:08:25Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation from multiple fields' values</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/calculation-from-multiple-fields-values/m-p/1631071#M63238</link>
      <description>&lt;P&gt;Thanks a million&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/719045"&gt;@j-bromp&lt;/a&gt;&amp;nbsp;! You're a lifesaver. It worked perfectly. Cheers!&lt;/P&gt;</description>
      <pubDate>Tue, 08 Jul 2025 13:07:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/calculation-from-multiple-fields-values/m-p/1631071#M63238</guid>
      <dc:creator>KayManuel</dc:creator>
      <dc:date>2025-07-08T13:07:38Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation from multiple fields' values</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/calculation-from-multiple-fields-values/m-p/1631089#M63241</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/719045"&gt;@j-bromp&lt;/a&gt;&amp;nbsp;'s solution is the way to go as there will be no answers if the questions aren't relevant, but an alternative option would be to a make all the acreage questions not visible until the conditions are met instead of not relevant. Then your original total calculation should work.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="NealKittelson_0-1751983383107.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/136078i6518A9CBCA735BE0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="NealKittelson_0-1751983383107.png" alt="NealKittelson_0-1751983383107.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Jul 2025 14:04:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/calculation-from-multiple-fields-values/m-p/1631089#M63241</guid>
      <dc:creator>Neal_t_k</dc:creator>
      <dc:date>2025-07-08T14:04:26Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation from multiple fields' values</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/calculation-from-multiple-fields-values/m-p/1633129#M63364</link>
      <description>&lt;P&gt;That makes a lot of sense. It works as well!&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 15 Jul 2025 13:31:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/calculation-from-multiple-fields-values/m-p/1633129#M63364</guid>
      <dc:creator>KayManuel</dc:creator>
      <dc:date>2025-07-15T13:31:14Z</dc:date>
    </item>
  </channel>
</rss>

