<?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: Why doesn't the count_selected function return an integer? in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/why-doesn-t-the-count-selected-function-return-an/m-p/873055#M28628</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, it returns a number; it can be used directly in a&amp;nbsp;calculation of a note or other field.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 24 May 2017 19:16:46 GMT</pubDate>
    <dc:creator>JamesTedrick</dc:creator>
    <dc:date>2017-05-24T19:16:46Z</dc:date>
    <item>
      <title>Why doesn't the count_selected function return an integer?</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/why-doesn-t-the-count-selected-function-return-an/m-p/873052#M28625</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I was using count_selected for the first time. Help states "Returns the number of selected answers. Used for select_multiple questions". I expected it to return an integer but it returned the number as text.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I wanted to total the number of answers from three different select_multiple questions.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="count_selected" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/353795_Capture1.JPG" style="width: 620px; height: 49px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;For each question I chose 1 answer and the note shows:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;111&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;It did a concatenation instead of an addition&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;My workaround was to use the int function&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;int(${Repair_type_score_3}) + int(${Repair_type_score_2}) + int(${Repair_type_score_1})&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Answer: 3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ideally I would like to see the function return an actual number instead of a text number. In the meantime the Help could be updated&amp;nbsp;to indicate this difference.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 May 2017 00:41:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/why-doesn-t-the-count-selected-function-return-an/m-p/873052#M28625</guid>
      <dc:creator>MikeOnzay</dc:creator>
      <dc:date>2017-05-24T00:41:12Z</dc:date>
    </item>
    <item>
      <title>Re: Why doesn't the count_selected function return an integer?</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/why-doesn-t-the-count-selected-function-return-an/m-p/873053#M28626</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mike,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The issue is that the calculate question&amp;nbsp;stores a text (string) value by default. &amp;nbsp;To set them to store integers, you need to add a column called&lt;/P&gt;&lt;P&gt;bind::type&amp;nbsp;&lt;/P&gt;&lt;P&gt;and set the values for the calculate columns to integer.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 May 2017 00:51:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/why-doesn-t-the-count-selected-function-return-an/m-p/873053#M28626</guid>
      <dc:creator>JamesTedrick</dc:creator>
      <dc:date>2017-05-24T00:51:12Z</dc:date>
    </item>
    <item>
      <title>Re: Why doesn't the count_selected function return an integer?</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/why-doesn-t-the-count-selected-function-return-an/m-p/873054#M28627</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;&lt;/P&gt;&lt;P&gt;Thanks for the quick reply and the reminder of how calculate stores values. Does this mean that count_selected really does return a number?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 May 2017 01:37:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/why-doesn-t-the-count-selected-function-return-an/m-p/873054#M28627</guid>
      <dc:creator>MikeOnzay</dc:creator>
      <dc:date>2017-05-24T01:37:31Z</dc:date>
    </item>
    <item>
      <title>Re: Why doesn't the count_selected function return an integer?</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/why-doesn-t-the-count-selected-function-return-an/m-p/873055#M28628</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, it returns a number; it can be used directly in a&amp;nbsp;calculation of a note or other field.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 May 2017 19:16:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/why-doesn-t-the-count-selected-function-return-an/m-p/873055#M28628</guid>
      <dc:creator>JamesTedrick</dc:creator>
      <dc:date>2017-05-24T19:16:46Z</dc:date>
    </item>
  </channel>
</rss>

