<?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 Problem using the sum aggregation function in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/problem-using-the-sum-aggregation-function/m-p/770797#M3707</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I want to check that 2 specific choices have been selected for 2 items inside a repeat. I thought about using the sum aggregation function to do that, assigning a value to both choices and putting a constraint on the sum.&lt;/P&gt;&lt;P&gt;Unfortunately, the sum result gives me 12 when I was expecting 3. The values 1 and 2 are concatenated instead of being added.&lt;/P&gt;&lt;P&gt;See attached form.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 28 Jul 2017 12:05:07 GMT</pubDate>
    <dc:creator>OlivierDemars</dc:creator>
    <dc:date>2017-07-28T12:05:07Z</dc:date>
    <item>
      <title>Problem using the sum aggregation function</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/problem-using-the-sum-aggregation-function/m-p/770797#M3707</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I want to check that 2 specific choices have been selected for 2 items inside a repeat. I thought about using the sum aggregation function to do that, assigning a value to both choices and putting a constraint on the sum.&lt;/P&gt;&lt;P&gt;Unfortunately, the sum result gives me 12 when I was expecting 3. The values 1 and 2 are concatenated instead of being added.&lt;/P&gt;&lt;P&gt;See attached form.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Jul 2017 12:05:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/problem-using-the-sum-aggregation-function/m-p/770797#M3707</guid>
      <dc:creator>OlivierDemars</dc:creator>
      <dc:date>2017-07-28T12:05:07Z</dc:date>
    </item>
    <item>
      <title>Re: Problem using the sum aggregation function</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/problem-using-the-sum-aggregation-function/m-p/770798#M3708</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Olivier,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;seelct_one questions by default are strings, so the summation would normally be a concatenation. &amp;nbsp;Normally, this can be altered by setting the bind::type column to integer - bind::type controls the type of value in the form. &amp;nbsp;However, I'm seeing issues validating a form with a select_one in a repeat to a different type. &amp;nbsp;The workaround would be to create a calculate question with the value that is set to the correct type (they default to strings as well), and use that for the calculation (see attached).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Jul 2017 17:33:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/problem-using-the-sum-aggregation-function/m-p/770798#M3708</guid>
      <dc:creator>JamesTedrick</dc:creator>
      <dc:date>2017-07-28T17:33:15Z</dc:date>
    </item>
    <item>
      <title>Re: Problem using the sum aggregation function</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/problem-using-the-sum-aggregation-function/m-p/770799#M3709</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks James, this workaround works for me.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Aug 2017 13:22:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/problem-using-the-sum-aggregation-function/m-p/770799#M3709</guid>
      <dc:creator>OlivierDemars</dc:creator>
      <dc:date>2017-08-01T13:22:25Z</dc:date>
    </item>
  </channel>
</rss>

