<?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: Select Multiple - maximum/minimum calculations? in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/select-multiple-maximum-minimum-calculations/m-p/756039#M1687</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Cory&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select_multiple (or select_one) questions do not support calculations of any type. So it is not possible to use min or max in the way that you outlined. We can get this added as an enhancement request though.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;John&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 16 Jul 2017 12:26:10 GMT</pubDate>
    <dc:creator>JohnathanHasthorpe</dc:creator>
    <dc:date>2017-07-16T12:26:10Z</dc:date>
    <item>
      <title>Select Multiple - maximum/minimum calculations?</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/select-multiple-maximum-minimum-calculations/m-p/756038#M1686</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hi,&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;I'm wondering if it's possible to use the Maximum and Minimum functions with select_multiple questions&lt;/DIV&gt;&lt;DIV&gt;I've got a series of answers with numerical equivalents, and I'd like to find the maximum or minimum value answer to use for future equations.&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;E.g. I want to find the minimum "size" chosen using the following questions:&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;&lt;TABLE class="j-table jiveBorder" style="border: 1px solid #c6c6c6;" width="100%"&gt;&lt;THEAD&gt;&lt;TR style="background-color: #efefef;"&gt;&lt;TH&gt;Type&lt;/TH&gt;&lt;TH&gt;Name&lt;/TH&gt;&lt;TH&gt;Label&lt;/TH&gt;&lt;TH&gt;Calculation&lt;/TH&gt;&lt;/TR&gt;&lt;/THEAD&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;select_multiple size_list&lt;/TD&gt;&lt;TD&gt;sizes&lt;/TD&gt;&lt;TD&gt;Available Sizes&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;decimal&lt;/TD&gt;&lt;TD&gt;minimum_size&lt;/TD&gt;&lt;TD&gt;Minimum Available Size&lt;/TD&gt;&lt;TD&gt;min(${sizes})&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;&lt;TABLE class="j-table jiveBorder" style="border: 1px solid #c6c6c6;" width="100%"&gt;&lt;THEAD&gt;&lt;TR style="background-color: #efefef;"&gt;&lt;TH&gt;list_name&lt;/TH&gt;&lt;TH&gt;name&lt;/TH&gt;&lt;TH&gt;label&lt;/TH&gt;&lt;/TR&gt;&lt;/THEAD&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;size_list&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;Small&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;size_list&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;Medium&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;size_list&lt;/TD&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;Large&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;The calculation I tried only works if one choice is selected:&lt;/DIV&gt;&lt;DIV&gt;min(${sizes})&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;I'm able to find the minimum with cascading if statements, but it's pretty tedious and depends on the order the values are written:&lt;/DIV&gt;&lt;DIV&gt;if(selected(${sizes},'1'),1,if(selected(${sizes},'2'),2,if(selected(${sizes},'3'),3,0)))&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;Is there a better way to accomplish this?&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;Thanks&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Jul 2017 22:22:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/select-multiple-maximum-minimum-calculations/m-p/756038#M1686</guid>
      <dc:creator>CoryMcGregor</dc:creator>
      <dc:date>2017-07-14T22:22:49Z</dc:date>
    </item>
    <item>
      <title>Re: Select Multiple - maximum/minimum calculations?</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/select-multiple-maximum-minimum-calculations/m-p/756039#M1687</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Cory&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select_multiple (or select_one) questions do not support calculations of any type. So it is not possible to use min or max in the way that you outlined. We can get this added as an enhancement request though.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;John&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 16 Jul 2017 12:26:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/select-multiple-maximum-minimum-calculations/m-p/756039#M1687</guid>
      <dc:creator>JohnathanHasthorpe</dc:creator>
      <dc:date>2017-07-16T12:26:10Z</dc:date>
    </item>
    <item>
      <title>Re: Select Multiple - maximum/minimum calculations?</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/select-multiple-maximum-minimum-calculations/m-p/756040#M1688</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi John,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply. I may not have been&amp;nbsp;clear that I was using a decimal question for the actual calculation part. I've edited the question to make it easier to read.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, the If statements will work for me, I was just hoping to find an easier way to use the answers from select_multiple for future calculations if possible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers!&lt;/P&gt;&lt;P&gt;Cory&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 16 Jul 2017 16:50:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/select-multiple-maximum-minimum-calculations/m-p/756040#M1688</guid>
      <dc:creator>CoryMcGregor</dc:creator>
      <dc:date>2017-07-16T16:50:36Z</dc:date>
    </item>
    <item>
      <title>Re: Select Multiple - maximum/minimum calculations?</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/select-multiple-maximum-minimum-calculations/m-p/756041#M1689</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Cory&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Because the select_multiple actually returns a string, any alternative approach would require you extracting the numbers from the string (and then getting the min/max), and would still&amp;nbsp;require a number of if statements to achieve what you are trying to do. So to answer your question - there is not an easier way to do this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;John&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Jul 2017 03:01:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/select-multiple-maximum-minimum-calculations/m-p/756041#M1689</guid>
      <dc:creator>JohnathanHasthorpe</dc:creator>
      <dc:date>2017-07-18T03:01:02Z</dc:date>
    </item>
  </channel>
</rss>

