<?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() Aggregate function, appends values, doesnt add them in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/sum-aggregate-function-appends-values-doesnt-add/m-p/795523#M9352</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Looks like your Excel validation got messed up.&amp;nbsp; This happens when you copy/paste cells and forget to use right click Paste Values.&amp;nbsp; It is just using simple Excel constraints looking up via the types tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Options are&amp;nbsp;&lt;/P&gt;&lt;P&gt;Fix the validation by looking at another cell.&lt;/P&gt;&lt;P&gt;Copy paste&amp;nbsp;(not using paste values so you get the validation to come over) from a cell that does work then type your value back in.&lt;/P&gt;&lt;P&gt;Start a brand new form, copy all the old form in using Paste Values, then save over the top of the original.&amp;nbsp; This is what I do to "update" my old forms when new features come out.&lt;/P&gt;&lt;P&gt;Turn off Excel validation for that cell.&amp;nbsp; I do this a lot when using grid or it will yell at you constantly.&amp;nbsp; I also use this to get rid of the annoying yellow popups.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 30 Aug 2019 14:30:24 GMT</pubDate>
    <dc:creator>DougBrowning</dc:creator>
    <dc:date>2019-08-30T14:30:24Z</dc:date>
    <item>
      <title>sum() Aggregate function, appends values, doesnt add them</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/sum-aggregate-function-appends-values-doesnt-add/m-p/795516#M9345</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here's the general layout of the form. If selField = a, I want to set calcField to 1 for the repeat record. &lt;/P&gt;&lt;P&gt;Then, the calculation in sumVal field should tally all the repeat records that have a value of 'a'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Well, the first sumVal is 1 if 'a' is selected, then you add a repeat select 'a' again, now the sumVal is 11.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;So, the sum() calculation is concatenating the 1's and not adding them. How do you get around this??&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I have calcField and sumVal fields set to ESRI type Integer.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE class="j-table jiveBorder" style="border: 1px solid #c6c6c6;" width="690"&gt;&lt;THEAD&gt;&lt;TR style="background-color: #efefef; height: 25px;"&gt;&lt;TH style="height: 25px; width: 211.367px;"&gt;type&lt;/TH&gt;&lt;TH style="height: 25px; width: 218.317px;"&gt;field_name&lt;/TH&gt;&lt;TH style="height: 25px; width: 226.317px;"&gt;calculation&lt;/TH&gt;&lt;/TR&gt;&lt;/THEAD&gt;&lt;TBODY&gt;&lt;TR style="height: 25px;"&gt;&lt;TD style="height: 25px; width: 211.367px;"&gt;integer&lt;/TD&gt;&lt;TD style="height: 25px; width: 218.317px;"&gt;sumVal&lt;/TD&gt;&lt;TD style="height: 25px; width: 226.317px;"&gt;sum(${calcField})&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 25px;"&gt;&lt;TD style="height: 25px; width: 211.367px;"&gt;begin repeat&lt;/TD&gt;&lt;TD style="height: 25px; width: 218.317px;"&gt;relatedTable&lt;/TD&gt;&lt;TD style="height: 25px; width: 226.317px;"&gt;List of Repeats&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 25px;"&gt;&lt;TD style="height: 25px; width: 211.367px;"&gt;select_one choiceList&lt;/TD&gt;&lt;TD style="height: 25px; width: 218.317px;"&gt;selField&lt;/TD&gt;&lt;TD style="height: 25px; width: 226.317px;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 25px;"&gt;&lt;TD style="height: 25px; width: 211.367px;"&gt;calculate&lt;/TD&gt;&lt;TD style="height: 25px; width: 218.317px;"&gt;calcField&amp;nbsp;&lt;/TD&gt;&lt;TD style="height: 25px; width: 226.317px;"&gt;if(selected(${selField},'a',1,0)&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 25px;"&gt;&lt;TD style="height: 25px; width: 211.367px;"&gt;end repeat&lt;/TD&gt;&lt;TD style="height: 25px; width: 218.317px;"&gt;&lt;/TD&gt;&lt;TD style="height: 25px; width: 226.317px;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 14 Oct 2017 00:16:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/sum-aggregate-function-appends-values-doesnt-add/m-p/795516#M9345</guid>
      <dc:creator>danbecker</dc:creator>
      <dc:date>2017-10-14T00:16:39Z</dc:date>
    </item>
    <item>
      <title>Re: sum() Aggregate function, appends values, doesnt add them</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/sum-aggregate-function-appends-values-doesnt-add/m-p/795517#M9346</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;Edited&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: line-through;"&gt;This is a bug.&lt;/SPAN&gt; Change&amp;nbsp;&lt;SPAN style="background-color: #ffffff;"&gt;calcField from type calculate to integer and everything works.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;I just added a bogus relavent expression for&amp;nbsp;&lt;SPAN&gt;calcField so its never displayed to the user.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&lt;SPAN&gt;Adding column bind::type and setting it to Integer also works. In this case you can leave the calcField to be type calculate.&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 14 Oct 2017 01:54:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/sum-aggregate-function-appends-values-doesnt-add/m-p/795517#M9346</guid>
      <dc:creator>danbecker</dc:creator>
      <dc:date>2017-10-14T01:54:55Z</dc:date>
    </item>
    <item>
      <title>Re: sum() Aggregate function, appends values, doesnt add them</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/sum-aggregate-function-appends-values-doesnt-add/m-p/795518#M9347</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many question types (calculate, hidden, selects) are automatically typed as strings (text). &amp;nbsp;To have them be considered another data type, you will need to add a column bind::type and set the value for the calculate question to be integer. &amp;nbsp;The esriFieldType relates to publishing the service and how the data is submitted (as opposed to how it works inside the form).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Oct 2017 17:18:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/sum-aggregate-function-appends-values-doesnt-add/m-p/795518#M9347</guid>
      <dc:creator>JamesTedrick</dc:creator>
      <dc:date>2017-10-16T17:18:04Z</dc:date>
    </item>
    <item>
      <title>Re: sum() Aggregate function, appends values, doesnt add them</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/sum-aggregate-function-appends-values-doesnt-add/m-p/795519#M9348</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks James, confirmed. I edited my comment above. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Oct 2017 17:25:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/sum-aggregate-function-appends-values-doesnt-add/m-p/795519#M9348</guid>
      <dc:creator>danbecker</dc:creator>
      <dc:date>2017-10-16T17:25:41Z</dc:date>
    </item>
    <item>
      <title>Re: sum() Aggregate function, appends values, doesnt add them</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/sum-aggregate-function-appends-values-doesnt-add/m-p/795520#M9349</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A href="https://community.esri.com/migrated-users/3263"&gt;James Tedrick&lt;/A&gt;‌,&amp;nbsp;in Survey123 Connect&amp;nbsp; 3.3.51,&amp;nbsp;there is&amp;nbsp;a&amp;nbsp;&lt;SPAN style="background-color: #ffffff;"&gt;column bind::type. I have a repeat question, containing&amp;nbsp; a select_one question, which I want to be a considered as an integer question in order to sum all the values &lt;SPAN&gt;for this repeat record. The problem, is when I&amp;nbsp;set the value for the&amp;nbsp;select_one question to be integer in the&amp;nbsp;column bind::type (I set the value to &lt;EM&gt;int&lt;/EM&gt;), I get an error in my form. I'm attaching screeshots of my survey123 form.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&lt;SPAN&gt;&lt;IMG alt="" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/452639_SurveyError1.jpg" /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&lt;SPAN&gt;&lt;IMG alt="" class="image-2 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/452640_SurveyError2.jpg" /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&lt;SPAN&gt;This is the error I get:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&lt;SPAN&gt;&lt;IMG class="image-3 jive-image" src="https://community.esri.com/legacyfs/online/452641_pastedImage_3.jpg" /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&lt;SPAN&gt;Thank you for your help!!!&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&lt;SPAN&gt;Alicia&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jul 2019 12:55:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/sum-aggregate-function-appends-values-doesnt-add/m-p/795520#M9349</guid>
      <dc:creator>AliciaPerez</dc:creator>
      <dc:date>2019-07-09T12:55:03Z</dc:date>
    </item>
    <item>
      <title>Re: sum() Aggregate function, appends values, doesnt add them</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/sum-aggregate-function-appends-values-doesnt-add/m-p/795521#M9350</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alicia,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately, you cannot set the bind::type of a select_one question. &amp;nbsp;I would recommend having a calculate question that converts the value of the select_one to the appropriate type (using a conversion function and bind::type setting) as a workaround; &amp;nbsp;you could set the select_one question's bind::esri:fieldType setting to null to prevent having 2 columns with essentially the same information.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jul 2019 05:36:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/sum-aggregate-function-appends-values-doesnt-add/m-p/795521#M9350</guid>
      <dc:creator>JamesTedrick</dc:creator>
      <dc:date>2019-07-10T05:36:05Z</dc:date>
    </item>
    <item>
      <title>Re: sum() Aggregate function, appends values, doesnt add them</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/sum-aggregate-function-appends-values-doesnt-add/m-p/795522#M9351</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;I have the same problem as the original post.&amp;nbsp; I also have the additional problem that when I try to enter something into the bind::esri:fieldType column OR the bind::type column, I get this error, and it happens every time I try.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="458251" alt="" class="jive-emoji image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/458251_esriFieldType_error_screenshot.JPG" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've tried typing:&lt;/P&gt;&lt;P&gt;esriFieldTypeInteger&lt;/P&gt;&lt;P&gt;integer&lt;/P&gt;&lt;P&gt;int&lt;/P&gt;&lt;P&gt;Anything I type results in this same error message.&amp;nbsp; Also, absolutely nothing happens or displays when I click the little dropdown arrow in the selected cell, which I believe is supposed to show the things you can put in cells in that column.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edit:&lt;/P&gt;&lt;P&gt;I just discovered that I&amp;nbsp;&lt;STRONG&gt;am&lt;/STRONG&gt; able to enter a field type into the esriFieldType column if I create a brand-new row in the spreadsheet.&amp;nbsp; So...are you not allowed to change the field type from string to integer&amp;nbsp;for an already-existing row/question?&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Aug 2019 16:52:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/sum-aggregate-function-appends-values-doesnt-add/m-p/795522#M9351</guid>
      <dc:creator>AllenDailey1</dc:creator>
      <dc:date>2019-08-29T16:52:33Z</dc:date>
    </item>
    <item>
      <title>Re: sum() Aggregate function, appends values, doesnt add them</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/sum-aggregate-function-appends-values-doesnt-add/m-p/795523#M9352</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Looks like your Excel validation got messed up.&amp;nbsp; This happens when you copy/paste cells and forget to use right click Paste Values.&amp;nbsp; It is just using simple Excel constraints looking up via the types tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Options are&amp;nbsp;&lt;/P&gt;&lt;P&gt;Fix the validation by looking at another cell.&lt;/P&gt;&lt;P&gt;Copy paste&amp;nbsp;(not using paste values so you get the validation to come over) from a cell that does work then type your value back in.&lt;/P&gt;&lt;P&gt;Start a brand new form, copy all the old form in using Paste Values, then save over the top of the original.&amp;nbsp; This is what I do to "update" my old forms when new features come out.&lt;/P&gt;&lt;P&gt;Turn off Excel validation for that cell.&amp;nbsp; I do this a lot when using grid or it will yell at you constantly.&amp;nbsp; I also use this to get rid of the annoying yellow popups.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Aug 2019 14:30:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/sum-aggregate-function-appends-values-doesnt-add/m-p/795523#M9352</guid>
      <dc:creator>DougBrowning</dc:creator>
      <dc:date>2019-08-30T14:30:24Z</dc:date>
    </item>
    <item>
      <title>Re: sum() Aggregate function, appends values, doesnt add them</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/sum-aggregate-function-appends-values-doesnt-add/m-p/795524#M9353</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, Doug!&lt;/P&gt;&lt;P&gt;I'd never heard of right-click Paste Values, so that's good to know.&lt;/P&gt;&lt;P&gt;In the meantime, I also discovered that certain rows, I guess ones where I had not copy/pasted incorrectly, did allow me to select a value from the dropdown.&amp;nbsp; Then I could copy this value that I chose from the dropdown and paste it into one of the rows/cells where I had unsuccessfully tried to enter the value before.&amp;nbsp; I imagine this connects to the issues you posted about.&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;--Allen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Sep 2019 15:23:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/sum-aggregate-function-appends-values-doesnt-add/m-p/795524#M9353</guid>
      <dc:creator>AllenDailey1</dc:creator>
      <dc:date>2019-09-03T15:23:11Z</dc:date>
    </item>
  </channel>
</rss>

