<?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 based on Yes or No values in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/calculation-based-on-yes-or-no-values/m-p/1542453#M59352</link>
    <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/1476"&gt;@ChristopherMcClain&lt;/a&gt;&amp;nbsp; I feel Solution 2 would be too time consuming as there are probably over 30 Yes/No questions.&lt;/P&gt;&lt;P&gt;With regards to Solution 1 what type of question are you using that would allow&amp;nbsp;&lt;SPAN&gt;1 and 0 in the name column but leave the Labels as Yes and No&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
    <pubDate>Wed, 25 Sep 2024 13:27:05 GMT</pubDate>
    <dc:creator>CMcDonald</dc:creator>
    <dc:date>2024-09-25T13:27:05Z</dc:date>
    <item>
      <title>Calculation based on Yes or No values</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/calculation-based-on-yes-or-no-values/m-p/1541907#M59316</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;is it possible in ArcGIS Survey123 web designer to create a calculation based on Yes and No values entered in something like a Single select type question.&amp;nbsp; The Yes values would have a value of &lt;STRONG&gt;1&lt;/STRONG&gt; and No values &lt;STRONG&gt;0&lt;/STRONG&gt;.&amp;nbsp; I would like to add these up and perform a total score. Below is a mock up which hopefully helps.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="CMcDonald_0-1727186030894.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/115768i3C28D799742B898A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="CMcDonald_0-1727186030894.png" alt="CMcDonald_0-1727186030894.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thankyou&lt;/P&gt;</description>
      <pubDate>Tue, 24 Sep 2024 13:55:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/calculation-based-on-yes-or-no-values/m-p/1541907#M59316</guid>
      <dc:creator>CMcDonald</dc:creator>
      <dc:date>2024-09-24T13:55:27Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation based on Yes or No values</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/calculation-based-on-yes-or-no-values/m-p/1542018#M59320</link>
      <description>&lt;P&gt;I would accomplish this one of two ways&lt;/P&gt;&lt;P&gt;Solution one:&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;When creating the choice list for the the questions use the 1 and 0 in the name column but leave the Labels as Yes and No.&amp;nbsp; So your user will see yes and no as the choices but the form will record&amp;nbsp; 1 or 0.&amp;nbsp; This is OK if you aren't planning to do anything else with the data in the future.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Solution 2:&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; If you want to preserve the yes and no values in your table you could put a hidden item below each Question and calculate a value (1 or 0) based on the previous answer.&amp;nbsp; You would do this by using a the putting an if statement in the calculation field&amp;nbsp;&lt;/P&gt;&lt;P&gt;Something like if(${PreviousQuestion}='Yes',1,0)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;With either solution you would then be able to use the calculate field to calculate the total score.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Sep 2024 16:14:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/calculation-based-on-yes-or-no-values/m-p/1542018#M59320</guid>
      <dc:creator>ChristopherMcClain</dc:creator>
      <dc:date>2024-09-24T16:14:11Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation based on Yes or No values</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/calculation-based-on-yes-or-no-values/m-p/1542453#M59352</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/1476"&gt;@ChristopherMcClain&lt;/a&gt;&amp;nbsp; I feel Solution 2 would be too time consuming as there are probably over 30 Yes/No questions.&lt;/P&gt;&lt;P&gt;With regards to Solution 1 what type of question are you using that would allow&amp;nbsp;&lt;SPAN&gt;1 and 0 in the name column but leave the Labels as Yes and No&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Wed, 25 Sep 2024 13:27:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/calculation-based-on-yes-or-no-values/m-p/1542453#M59352</guid>
      <dc:creator>CMcDonald</dc:creator>
      <dc:date>2024-09-25T13:27:05Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation based on Yes or No values</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/calculation-based-on-yes-or-no-values/m-p/1542543#M59354</link>
      <description>&lt;P&gt;The question type would be select_one list.&amp;nbsp; On the choice tab you can either modify the existing yes no choices by changing the value in the name column to 1 for yes and 0 for no, otherwise you could just create a new entry with the same values (depending if you will have other Yes/No questions in your survey that you don't want to do math with).&amp;nbsp; The you would add and integer , hidden, or calculate question type to the form and populate the calculation field with the ${fieldname}+${fieldname2}...&amp;nbsp; .&amp;nbsp; If this field will be visible to the user you will want to prevent them from overriding the calculated answer.&lt;/P&gt;&lt;P&gt;I have attached a quick example which I have attached&lt;/P&gt;</description>
      <pubDate>Wed, 25 Sep 2024 15:57:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/calculation-based-on-yes-or-no-values/m-p/1542543#M59354</guid>
      <dc:creator>ChristopherMcClain</dc:creator>
      <dc:date>2024-09-25T15:57:16Z</dc:date>
    </item>
  </channel>
</rss>

