<?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: Weight of select_one user input in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/weight-of-select-one-user-input/m-p/845330#M21910</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dragos&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Survey123 does not use Excel formulas. You need to use the XLSForm Spec instead.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A couple of things to note on your calculations:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;=IF(SUM(choices!F54,choices!F63,choices!F71,choices!F79,choices!F87,choices!F95)=0,"",choices!F54/(SUM(choices!F54,choices!F63,choices!F71,choices!F79,choices!F87,choices!F95,)))&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Don't use &lt;EM&gt;=&lt;/EM&gt; before an if() statement&lt;/LI&gt;&lt;LI&gt;Don't refer to excel cells - you need to refer to question names e.g. ${Calc_C4}&lt;/LI&gt;&lt;LI&gt;An if statement should be on the lines of &lt;SPAN style="color: #4c4c4c; background-color: #ffffff; font-weight: 300;"&gt;&lt;EM&gt;if(condition, a, b)&lt;/EM&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;for example if(${q1}&amp;gt;0, 1, 0)&lt;/EM&gt;&lt;/LI&gt;&lt;LI&gt;Don't use sum() in this context. You should use +. e.g&amp;nbsp;&lt;SPAN&gt;${&lt;/SPAN&gt;&lt;SPAN&gt;Calc_C4} +&amp;nbsp;${&lt;SPAN&gt;Calc_C5}&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please take a look at the following for more background on the above&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://doc.arcgis.com/en/survey123/desktop/create-surveys/xlsformessentials.htm" title="http://doc.arcgis.com/en/survey123/desktop/create-surveys/xlsformessentials.htm"&gt;XLSForm essentials—Survey123 for ArcGIS | ArcGIS&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://doc.arcgis.com/en/survey123/desktop/create-surveys/xlsformformulas.htm" title="http://doc.arcgis.com/en/survey123/desktop/create-surveys/xlsformformulas.htm"&gt;Formulas—Survey123 for ArcGIS | ArcGIS&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and let me know if you need any further clarification&lt;/P&gt;&lt;P&gt;John&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 28 Mar 2018 00:43:40 GMT</pubDate>
    <dc:creator>JohnathanHasthorpe</dc:creator>
    <dc:date>2018-03-28T00:43:40Z</dc:date>
    <item>
      <title>Weight of select_one user input</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/weight-of-select-one-user-input/m-p/845329#M21909</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #333333; background-color: #fafafa; font-size: 13px;"&gt;Hello!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; background-color: #fafafa; font-size: 13px;"&gt;I'm working to make a survey on how&amp;nbsp; well prepared and inform is the population of a country to front a disaster.&lt;/SPAN&gt;&lt;BR style="color: #333333; background-color: #fafafa; font-size: 13px;" /&gt;&lt;SPAN style="color: #333333; background-color: #fafafa; font-size: 13px;"&gt;In my survey i have 6 questions, first, each of this 6 questions has 2 arguments "yes=0.17 is for appling" and "no=0 is for not appling". Next, checking one of these 2 boxes, the value must update to the Count row in the calculation field, also under the Count row, i've added a calculate row to allow the calculation and update it to the Count row&lt;/SPAN&gt;&lt;SPAN style="color: #333333; background-color: #fafafa; font-size: 13px;"&gt;&amp;nbsp;with one of the values 0.17 or 0( this values should be the user input for yes or no). The yes or no values are defined in&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;STRONG style="color: #333333; background-color: #fafafa; font-size: 13px;"&gt;Choices sheet&lt;/STRONG&gt;&lt;SPAN style="color: #333333; background-color: #fafafa; font-size: 13px;"&gt;. Next in my survey i need to display the weight *(Pondere aplicabilitate%) of the check answers, in the calculation of the calculate row i've used this function: ( if(sum( allcounts = 0, "" , count9/sum( allcounts)) and here i think is the problem...the counts are not defined to allow the formula to work, how should i go on ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;=IF(SUM(M9,M19,M28,M37,M46,M53)=0,"",M9/(SUM(M9,M19,M28,M37,M46,M53)))&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;nbsp;This should be the formula for the weight applicability.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="The survey sheet with the 6 questions and the  parameters that are set for each question" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/399832_survey.jpg" style="width: 620px; height: 322px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="The choices sheet, 0.17 and 0 for yes applicable and 0 not applicable..also  the other parameters" class="image-2 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/399842_Choices.jpg" style="width: 620px; height: 324px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Mar 2018 15:50:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/weight-of-select-one-user-input/m-p/845329#M21909</guid>
      <dc:creator>DragosDumitrescu1</dc:creator>
      <dc:date>2018-03-26T15:50:30Z</dc:date>
    </item>
    <item>
      <title>Re: Weight of select_one user input</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/weight-of-select-one-user-input/m-p/845330#M21910</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dragos&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Survey123 does not use Excel formulas. You need to use the XLSForm Spec instead.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A couple of things to note on your calculations:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;=IF(SUM(choices!F54,choices!F63,choices!F71,choices!F79,choices!F87,choices!F95)=0,"",choices!F54/(SUM(choices!F54,choices!F63,choices!F71,choices!F79,choices!F87,choices!F95,)))&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Don't use &lt;EM&gt;=&lt;/EM&gt; before an if() statement&lt;/LI&gt;&lt;LI&gt;Don't refer to excel cells - you need to refer to question names e.g. ${Calc_C4}&lt;/LI&gt;&lt;LI&gt;An if statement should be on the lines of &lt;SPAN style="color: #4c4c4c; background-color: #ffffff; font-weight: 300;"&gt;&lt;EM&gt;if(condition, a, b)&lt;/EM&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;for example if(${q1}&amp;gt;0, 1, 0)&lt;/EM&gt;&lt;/LI&gt;&lt;LI&gt;Don't use sum() in this context. You should use +. e.g&amp;nbsp;&lt;SPAN&gt;${&lt;/SPAN&gt;&lt;SPAN&gt;Calc_C4} +&amp;nbsp;${&lt;SPAN&gt;Calc_C5}&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please take a look at the following for more background on the above&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://doc.arcgis.com/en/survey123/desktop/create-surveys/xlsformessentials.htm" title="http://doc.arcgis.com/en/survey123/desktop/create-surveys/xlsformessentials.htm"&gt;XLSForm essentials—Survey123 for ArcGIS | ArcGIS&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://doc.arcgis.com/en/survey123/desktop/create-surveys/xlsformformulas.htm" title="http://doc.arcgis.com/en/survey123/desktop/create-surveys/xlsformformulas.htm"&gt;Formulas—Survey123 for ArcGIS | ArcGIS&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and let me know if you need any further clarification&lt;/P&gt;&lt;P&gt;John&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Mar 2018 00:43:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/weight-of-select-one-user-input/m-p/845330#M21910</guid>
      <dc:creator>JohnathanHasthorpe</dc:creator>
      <dc:date>2018-03-28T00:43:40Z</dc:date>
    </item>
    <item>
      <title>Re: Weight of select_one user input</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/weight-of-select-one-user-input/m-p/845331#M21911</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Cheers John and thank you very much !!&lt;/P&gt;&lt;P&gt; That was very, very useful and clearly explained, uhaaa !!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Have a nice day and cheers from Romania!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2018-03-28 3:44 GMT+03:00 Johnathan Hasthorpe &amp;lt;geonet@esri.com&amp;gt;:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE level="1"&gt;&lt;P&gt;GeoNet &amp;lt;https://community.esri.com/?et=watches.email.thread&amp;gt;&lt;/P&gt;&lt;P&gt;Re: Weight of select_one user input&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reply from Johnathan Hasthorpe&lt;/P&gt;&lt;P&gt;&amp;lt;https://community.esri.com/people/JHasthorpe-esristaff?et=watches.email.thread&amp;gt;&lt;/P&gt;&lt;P&gt;in &lt;STRONG&gt;Survey123 for ArcGIS&lt;/STRONG&gt; - View the full discussion&lt;/P&gt;&lt;P&gt;&amp;lt;https://community.esri.com/message/759918-re-weight-of-selectone-user-input?commentID=759918&amp;amp;et=watches.email.thread#comment-759918&amp;gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Mar 2018 11:18:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/weight-of-select-one-user-input/m-p/845331#M21911</guid>
      <dc:creator>DragosDumitrescu1</dc:creator>
      <dc:date>2018-03-28T11:18:43Z</dc:date>
    </item>
  </channel>
</rss>

