<?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: Counting unique values in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/counting-unique-values/m-p/767828#M2910</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have two groups of plants that use the same plant list.&amp;nbsp; One we call indicators and the other is called non-indicators.&amp;nbsp; The count function is pasted below.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;type&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;name&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;label&lt;/P&gt;&lt;TABLE width="491"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD style="font-size: 10.0pt; color: black; font-weight: 400; text-decoration: none; border-top: .5pt solid #9BBB59; border-right: none; border-bottom: none; border-left: .5pt solid #9BBB59; background: #FCD5B4;" width="136"&gt;select_one list_11&lt;/TD&gt;&lt;TD style="font-size: 10.0pt; color: black; font-weight: 400; text-decoration: none; border-top: .5pt solid #9BBB59; border-right: none; border-bottom: none; border-left: none; background: #FCD5B4;" width="136"&gt;indicators&lt;/TD&gt;&lt;TD style="font-size: 10.0pt; color: black; font-weight: 400; text-decoration: none; border-top: .5pt solid #9BBB59; border-right: none; border-bottom: none; border-left: none; background: #FCD5B4;" width="219"&gt;Select Species&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;calculation&lt;/P&gt;&lt;TABLE width="426"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD style="font-size: 10.0pt; color: black; font-weight: 400; text-decoration: none; border-top: .5pt solid #9BBB59; border-right: none; border-bottom: none; border-left: none; background: #FCD5B4;" width="426"&gt;count(${indicators})&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The syntax is the same for non-indicators.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions are appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jimmy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 12 Feb 2019 20:07:59 GMT</pubDate>
    <dc:creator>JimmyErnst1</dc:creator>
    <dc:date>2019-02-12T20:07:59Z</dc:date>
    <item>
      <title>Counting unique values</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/counting-unique-values/m-p/767826#M2908</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My survey contains a list of 125 plant species.&amp;nbsp; The user selects plant species along transects and counts the # of of each.&amp;nbsp; In my 'count species' function, every time a species is counted, it registers as 1.&amp;nbsp; If the same species is counted multiple times, it is counted multiple times, inflating my final species count.&amp;nbsp; I need to only count the unique species selected from the list to get an accurate result.&amp;nbsp; Is there a way to do this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Feb 2019 21:51:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/counting-unique-values/m-p/767826#M2908</guid>
      <dc:creator>JimmyErnst1</dc:creator>
      <dc:date>2019-02-08T21:51:19Z</dc:date>
    </item>
    <item>
      <title>Re: Counting unique values</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/counting-unique-values/m-p/767827#M2909</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;what does your count species function look like?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Feb 2019 22:01:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/counting-unique-values/m-p/767827#M2909</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2019-02-08T22:01:41Z</dc:date>
    </item>
    <item>
      <title>Re: Counting unique values</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/counting-unique-values/m-p/767828#M2910</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have two groups of plants that use the same plant list.&amp;nbsp; One we call indicators and the other is called non-indicators.&amp;nbsp; The count function is pasted below.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;type&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;name&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;label&lt;/P&gt;&lt;TABLE width="491"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD style="font-size: 10.0pt; color: black; font-weight: 400; text-decoration: none; border-top: .5pt solid #9BBB59; border-right: none; border-bottom: none; border-left: .5pt solid #9BBB59; background: #FCD5B4;" width="136"&gt;select_one list_11&lt;/TD&gt;&lt;TD style="font-size: 10.0pt; color: black; font-weight: 400; text-decoration: none; border-top: .5pt solid #9BBB59; border-right: none; border-bottom: none; border-left: none; background: #FCD5B4;" width="136"&gt;indicators&lt;/TD&gt;&lt;TD style="font-size: 10.0pt; color: black; font-weight: 400; text-decoration: none; border-top: .5pt solid #9BBB59; border-right: none; border-bottom: none; border-left: none; background: #FCD5B4;" width="219"&gt;Select Species&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;calculation&lt;/P&gt;&lt;TABLE width="426"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD style="font-size: 10.0pt; color: black; font-weight: 400; text-decoration: none; border-top: .5pt solid #9BBB59; border-right: none; border-bottom: none; border-left: none; background: #FCD5B4;" width="426"&gt;count(${indicators})&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The syntax is the same for non-indicators.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions are appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jimmy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Feb 2019 20:07:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/counting-unique-values/m-p/767828#M2910</guid>
      <dc:creator>JimmyErnst1</dc:creator>
      <dc:date>2019-02-12T20:07:59Z</dc:date>
    </item>
    <item>
      <title>Re: Counting unique values</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/counting-unique-values/m-p/767829#M2911</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Add a column to your choice&amp;nbsp;list that has say a 1 or 0 in it - 1 if you want to count it.&amp;nbsp; Have field 2 do a pulldata on the species name that grabs the 1 or 0.&amp;nbsp; Then do a count or sum on that field with the number in it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Opps missed the unique part.&amp;nbsp; You need another field that does a concat to create a list of all values in the repeat.&amp;nbsp; Then add a If on the count that has&amp;nbsp;a contains on this field.&amp;nbsp; So If FieldA contains FiledB then 1 else 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This a good post about making a field list.&amp;nbsp;&amp;nbsp; &lt;A _jive_internal="true" href="https://community.esri.com/thread/189428-summerize-data-within-a-repeat-survey123"&gt;https://community.esri.com/thread/189428-summerize-data-within-a-repeat-survey123&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Feb 2019 20:46:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/counting-unique-values/m-p/767829#M2911</guid>
      <dc:creator>DougBrowning</dc:creator>
      <dc:date>2019-02-12T20:46:50Z</dc:date>
    </item>
    <item>
      <title>Re: Counting unique values</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/counting-unique-values/m-p/767830#M2912</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can just have a field for joinning all the selected species (e.g. selection =&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;join(',', ${species})&lt;/P&gt;&lt;P&gt;And then another field where you:&lt;/P&gt;&lt;UL style="list-style-type: square;"&gt;&lt;LI style="margin: 0.2em 0px;"&gt;Check if a species is present in field selection&lt;/LI&gt;&lt;LI style="margin: 0.2em 0px;"&gt;Assign "1"&amp;nbsp;if it is&lt;/LI&gt;&lt;LI style="margin: 0.2em 0px;"&gt;Perform a sum&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(e.g.&amp;nbsp;if(contains(${selection}, 'Specie1'),1,0) + if(contains(${selection}, 'Specie2'),1,0) +...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Jun 2019 16:02:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/counting-unique-values/m-p/767830#M2912</guid>
      <dc:creator>NunoCaeiro</dc:creator>
      <dc:date>2019-06-26T16:02:24Z</dc:date>
    </item>
  </channel>
</rss>

