<?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 How can I sort integer data into classes, then display the relevant class in the survey form? in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/how-can-i-sort-integer-data-into-classes-then/m-p/792442#M8540</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My apologies if this is a simple question, I don't have a lot of experience in this realm. I was asked to create a survey form for a different group and they've got a requirement that I'm just not sure how to make happen. I've tried researching it myself but to no avail...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The data in question is percent cover, so the technician will estimate the percent cover of a given vegetation type and enter that integer into the form. Then the form would sort that data into a class or bin (i.e. 0-10%, 11-20%, etc...) and display the relevant class on the survey.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm guessing that I can use a note to display the end class fairly easily, but I have no idea how to make the sorting happen. Do I need to set up a series of if-then operations? Anyone care to give me an example? I'm not very well versed in xls or boolean language. I'd appreciate any help I could get.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for reading!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 31 Dec 2019 17:48:03 GMT</pubDate>
    <dc:creator>JohnMacmillan</dc:creator>
    <dc:date>2019-12-31T17:48:03Z</dc:date>
    <item>
      <title>How can I sort integer data into classes, then display the relevant class in the survey form?</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/how-can-i-sort-integer-data-into-classes-then/m-p/792442#M8540</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My apologies if this is a simple question, I don't have a lot of experience in this realm. I was asked to create a survey form for a different group and they've got a requirement that I'm just not sure how to make happen. I've tried researching it myself but to no avail...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The data in question is percent cover, so the technician will estimate the percent cover of a given vegetation type and enter that integer into the form. Then the form would sort that data into a class or bin (i.e. 0-10%, 11-20%, etc...) and display the relevant class on the survey.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm guessing that I can use a note to display the end class fairly easily, but I have no idea how to make the sorting happen. Do I need to set up a series of if-then operations? Anyone care to give me an example? I'm not very well versed in xls or boolean language. I'd appreciate any help I could get.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for reading!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Dec 2019 17:48:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/how-can-i-sort-integer-data-into-classes-then/m-p/792442#M8540</guid>
      <dc:creator>JohnMacmillan</dc:creator>
      <dc:date>2019-12-31T17:48:03Z</dc:date>
    </item>
    <item>
      <title>Re: How can I sort integer data into classes, then display the relevant class in the survey form?</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/how-can-i-sort-integer-data-into-classes-then/m-p/792443#M8541</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I do percent cover by Gap categories.&amp;nbsp; Yes you will need to set up a bunch of ifs then sum.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Start with the if to parse it out&lt;/P&gt;&lt;P&gt;Cat1C&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;if(${Gap}&amp;gt;=25 and ${Gap}&amp;lt;=50, ${Gap}, 0)&lt;/P&gt;&lt;P&gt;Cat2C&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;if(${Gap}&amp;gt;=51 and ${Gap}&amp;lt;=100, ${Gap}, 0)&lt;/P&gt;&lt;P&gt;etc...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then sum if it is in a repeat (prob is)&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;sumCanCat1&lt;/SPAN&gt;&amp;nbsp; &amp;nbsp;sum(${Cat1C})&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The divide.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;${sumCanCat1} div 25&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note my denominator was static at 25.&amp;nbsp; But in another form I have to have a second calc to get the denominator.&lt;/P&gt;&lt;P&gt;Do not count 0 values for the denominator&lt;/P&gt;&lt;P&gt;nonzerowoodyhgt&amp;nbsp; &amp;nbsp;&amp;nbsp;if(${HeightWoody}&amp;gt;0,1,0)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then use it (instead of just count(HeightWoody) as that would include the 0s).&lt;BR /&gt;Average Woody Height&amp;nbsp; &amp;nbsp;&amp;nbsp;sum(${HeightWoody}) div sum(${nonzerowoodyhgt})&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Dec 2019 20:52:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/how-can-i-sort-integer-data-into-classes-then/m-p/792443#M8541</guid>
      <dc:creator>DougBrowning</dc:creator>
      <dc:date>2019-12-31T20:52:55Z</dc:date>
    </item>
    <item>
      <title>Re: How can I sort integer data into classes, then display the relevant class in the survey form?</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/how-can-i-sort-integer-data-into-classes-then/m-p/792444#M8542</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Doug!&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Jan 2020 18:18:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/how-can-i-sort-integer-data-into-classes-then/m-p/792444#M8542</guid>
      <dc:creator>JohnMacmillan</dc:creator>
      <dc:date>2020-01-02T18:18:25Z</dc:date>
    </item>
  </channel>
</rss>

