<?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: Sum and multiple repeat question, mean estimate in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/sum-and-multiple-repeat-question-mean-estimate/m-p/1007509#M31481</link>
    <description>&lt;P&gt;I set both bind and esri bind and it works.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DougBrowning_0-1607369868792.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/1628i38753D67BE68DB9A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="DougBrowning_0-1607369868792.png" alt="DougBrowning_0-1607369868792.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DougBrowning_1-1607369886740.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/1629i13F8837714D145A0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="DougBrowning_1-1607369886740.png" alt="DougBrowning_1-1607369886740.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Bind is for within the form and esri bind is the data storage so you often need both.&amp;nbsp; Hope that helps.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 07 Dec 2020 19:40:29 GMT</pubDate>
    <dc:creator>DougBrowning</dc:creator>
    <dc:date>2020-12-07T19:40:29Z</dc:date>
    <item>
      <title>Sum and multiple repeat question, mean estimate</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/sum-and-multiple-repeat-question-mean-estimate/m-p/1006620#M31404</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Is have been able to sum repeated question.&lt;/P&gt;&lt;P&gt;However, I have an unresolved issue, I have 7 repeated integer questions, that I need to sum in order to estimate the mean.&amp;nbsp; I used the count&amp;nbsp; function so I can then estimate the mean = total sum / total count answer question.&lt;/P&gt;&lt;P&gt;The problem is that not always the&amp;nbsp;7 repeated questions will have a response, so that value will be NA or 0. I try to use&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;coalesce to solve this issue, but is not working.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I don't want the 0 value counted in the count function towards estimating the mean.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I have try to get around this issue.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Example:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;coalesce(sum(${producto_1.1.1})+sum(${producto_1.1.2})+sum(${producto_1.1.3}),0)....&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;sum(coalesce(${producto_1.1.1},0))+sum(coalesce(${producto_1.1.2},0)).....&lt;/P&gt;&lt;P&gt;I'm attaching the XLSForm&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/t5/user/viewprofilepage/user-id/16421" target="_blank" rel="noopener"&gt;@DougBrowning&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://community.esri.com/t5/user/viewprofilepage/user-id/2929" target="_blank" rel="noopener"&gt;@IsmaelChivite&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Cheers,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Federico&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Dec 2020 15:02:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/sum-and-multiple-repeat-question-mean-estimate/m-p/1006620#M31404</guid>
      <dc:creator>FedericoRiet_Sapriza</dc:creator>
      <dc:date>2020-12-03T15:02:45Z</dc:date>
    </item>
    <item>
      <title>Re: Sum and multiple repeat question, mean estimate</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/sum-and-multiple-repeat-question-mean-estimate/m-p/1006769#M31415</link>
      <description>&lt;P&gt;What exactly is not working.&amp;nbsp; Seems to work fine to me.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DougBrowning_0-1607026237658.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/1451iB2D23CA0B8EFDBCA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="DougBrowning_0-1607026237658.png" alt="DougBrowning_0-1607026237658.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Dec 2020 20:10:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/sum-and-multiple-repeat-question-mean-estimate/m-p/1006769#M31415</guid>
      <dc:creator>DougBrowning</dc:creator>
      <dc:date>2020-12-03T20:10:46Z</dc:date>
    </item>
    <item>
      <title>Re: Sum and multiple repeat question, mean estimate</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/sum-and-multiple-repeat-question-mean-estimate/m-p/1006856#M31419</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/205995"&gt;@FedericoRiet_Sapriza&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It sounds like you want to ignore from the count any zero values (where the user has input 0 on the range slider), is that right?&lt;/P&gt;&lt;P&gt;The count() function counts all instances of a repeat question that contain a value (that includes 0). One option that might work is to omit the records where the value is zero using an if() statement. Please see attached example. Optionally, you could set the field type for the range questions to null to omit them from the feature layer to avoid duplicate data.&lt;/P&gt;&lt;P&gt;One thing to note is that with this example, if the user enters 0 for the range question, it gets converted to a blank ''. If it's important to retain the zero, an alternative could be to make the second field in the repeat a &lt;EM&gt;counter&lt;/EM&gt;, using something like if(${producto_1_1_1}&amp;gt;0,1,0) and then use sum() in the &lt;EM&gt;contar_respe&lt;/EM&gt; field to get the total number of non-zero entries.&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Jim&lt;/P&gt;</description>
      <pubDate>Fri, 04 Dec 2020 01:17:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/sum-and-multiple-repeat-question-mean-estimate/m-p/1006856#M31419</guid>
      <dc:creator>Jim-Moore</dc:creator>
      <dc:date>2020-12-04T01:17:22Z</dc:date>
    </item>
    <item>
      <title>Re: Sum and multiple repeat question, mean estimate</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/sum-and-multiple-repeat-question-mean-estimate/m-p/1006986#M31427</link>
      <description>&lt;P&gt;In the sample I posted I filled out 3 of 7 fields and the count seemed to work.&amp;nbsp; That is why I asked what the exact issue is.&amp;nbsp; Range questions start as blank not 0.&amp;nbsp; Count ignores blank automatically so it all just works.&lt;/P&gt;</description>
      <pubDate>Fri, 04 Dec 2020 16:27:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/sum-and-multiple-repeat-question-mean-estimate/m-p/1006986#M31427</guid>
      <dc:creator>DougBrowning</dc:creator>
      <dc:date>2020-12-04T16:27:43Z</dc:date>
    </item>
    <item>
      <title>Re: Sum and multiple repeat question, mean estimate</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/sum-and-multiple-repeat-question-mean-estimate/m-p/1007478#M31477</link>
      <description>&lt;P&gt;Dear &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/16421"&gt;@DougBrowning&lt;/a&gt;&amp;nbsp;and&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/354006"&gt;@Jim-Moore&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks so much for your input and help.&lt;/P&gt;&lt;P&gt;I uploaded the XLSForm you send and works fine; however, if I want to hide these calculations from the form e.i. Value, Sum of Values, Count of Repeat (see image below, red arrow) the calculation goes to **bleep**.&lt;/P&gt;&lt;P&gt;I try with "hidden" and "calculations" in the type column and also in the&amp;nbsp;bind::esri:fieldType&lt;/P&gt;&lt;P&gt;column I selected "esriFieldTypeInteger". But no luck, I don't why this is happening?&lt;/P&gt;&lt;P&gt;Image 1:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="iamge1.jpg" style="width: 357px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/1622iD2A9D4E82A0A1AE1/image-dimensions/357x380?v=v2" width="357" height="380" role="button" title="iamge1.jpg" alt="iamge1.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Image 2: when I use calculate in type column in row 8&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="iamge2.jpg" style="width: 311px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/1623i480BCEF51A1C4FE8/image-size/large?v=v2&amp;amp;px=999" role="button" title="iamge2.jpg" alt="iamge2.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Federico&lt;/P&gt;</description>
      <pubDate>Mon, 07 Dec 2020 18:25:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/sum-and-multiple-repeat-question-mean-estimate/m-p/1007478#M31477</guid>
      <dc:creator>FedericoRiet_Sapriza</dc:creator>
      <dc:date>2020-12-07T18:25:20Z</dc:date>
    </item>
    <item>
      <title>Re: Sum and multiple repeat question, mean estimate</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/sum-and-multiple-repeat-question-mean-estimate/m-p/1007509#M31481</link>
      <description>&lt;P&gt;I set both bind and esri bind and it works.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DougBrowning_0-1607369868792.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/1628i38753D67BE68DB9A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="DougBrowning_0-1607369868792.png" alt="DougBrowning_0-1607369868792.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DougBrowning_1-1607369886740.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/1629i13F8837714D145A0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="DougBrowning_1-1607369886740.png" alt="DougBrowning_1-1607369886740.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Bind is for within the form and esri bind is the data storage so you often need both.&amp;nbsp; Hope that helps.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Dec 2020 19:40:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/sum-and-multiple-repeat-question-mean-estimate/m-p/1007509#M31481</guid>
      <dc:creator>DougBrowning</dc:creator>
      <dc:date>2020-12-07T19:40:29Z</dc:date>
    </item>
    <item>
      <title>Re: Sum and multiple repeat question, mean estimate</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/sum-and-multiple-repeat-question-mean-estimate/m-p/1007573#M31484</link>
      <description>&lt;P&gt;In addition to Doug's solution, note that you can apply the 'hidden' appearance to any question type. For example,&amp;nbsp;for Sum of Values, you could use the 'integer' question type and apply the hidden appearance. The question will work like a regular integer question, just not shown on the form. When using the 'hidden' appearance, there is no need to set the &lt;EM&gt;bind::type&lt;/EM&gt; or &lt;EM&gt;bind::esri:fieldType&lt;/EM&gt; as these are inherited from the question type.&lt;/P&gt;&lt;P&gt;For the 'calculate' and 'hidden' question types the field/bind type is string by default, so Doug's solution is the way to go when using these.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Dec 2020 00:01:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/sum-and-multiple-repeat-question-mean-estimate/m-p/1007573#M31484</guid>
      <dc:creator>Jim-Moore</dc:creator>
      <dc:date>2020-12-08T00:01:47Z</dc:date>
    </item>
    <item>
      <title>Re: Sum and multiple repeat question, mean estimate</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/sum-and-multiple-repeat-question-mean-estimate/m-p/1007580#M31485</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/16421"&gt;@DougBrowning&lt;/a&gt;&amp;nbsp;and&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/354006"&gt;@Jim-Moore&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;for your input and help, you guys rock!!!&lt;/P&gt;</description>
      <pubDate>Tue, 08 Dec 2020 00:42:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/sum-and-multiple-repeat-question-mean-estimate/m-p/1007580#M31485</guid>
      <dc:creator>FedericoRiet_Sapriza</dc:creator>
      <dc:date>2020-12-08T00:42:20Z</dc:date>
    </item>
  </channel>
</rss>

