<?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: Puling values from the repeat to a calculation in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/puling-values-from-the-repeat-to-a-calculation/m-p/787688#M7549</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear James,&lt;/P&gt;&lt;P&gt;Thank you for your prompt response. The equation works perfectly and solved the problem.&lt;/P&gt;&lt;P&gt;I was excited to see that.&lt;/P&gt;&lt;P&gt;Thanks again,&lt;/P&gt;&lt;P&gt;Guy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 02 May 2018 07:06:53 GMT</pubDate>
    <dc:creator>GuyNizry</dc:creator>
    <dc:date>2018-05-02T07:06:53Z</dc:date>
    <item>
      <title>Puling values from the repeat to a calculation</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/puling-values-from-the-repeat-to-a-calculation/m-p/787686#M7547</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, we are trying to add a calculation that uses values from repeat records by pulling each one separately and dividing it by the sum of all.&lt;/P&gt;&lt;P&gt;For instance (inside the repeat):&lt;/P&gt;&lt;TABLE style="border: none;" width="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD style="border: solid windowtext 1.0pt; padding: 0cm 5.4pt 0cm 5.4pt;" width="144"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;STRONG&gt;Specie&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border: solid windowtext 1.0pt; border-left: none; padding: 0cm 5.4pt 0cm 5.4pt;" width="136"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;STRONG&gt;Num of individuals&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="border: solid windowtext 1.0pt; border-top: none; padding: 0cm 5.4pt 0cm 5.4pt;" width="144"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;Specie 1&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0cm 5.4pt 0cm 5.4pt;" width="136"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;5&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="border: solid windowtext 1.0pt; border-top: none; padding: 0cm 5.4pt 0cm 5.4pt;" width="144"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;Specie 2&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0cm 5.4pt 0cm 5.4pt;" width="136"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;6&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="border: solid windowtext 1.0pt; border-top: none; padding: 0cm 5.4pt 0cm 5.4pt;" width="144"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;Specie 3&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0cm 5.4pt 0cm 5.4pt;" width="136"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;7&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="border: solid windowtext 1.0pt; border-top: none; padding: 0cm 5.4pt 0cm 5.4pt;" width="144"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;STRONG&gt;Total&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0cm 5.4pt 0cm 5.4pt;" width="136"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;STRONG&gt;18&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;This is a calculation that we would like to perform (outside the repeat):&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: red;"&gt;(5/18*ln(5/18))+ (6/18*ln(6/18))+ (7/18*ln(7/18)).&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Is it possible to accomplish with a current version of Survey123?&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 29 Apr 2018 07:52:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/puling-values-from-the-repeat-to-a-calculation/m-p/787686#M7547</guid>
      <dc:creator>GuyNizry</dc:creator>
      <dc:date>2018-04-29T07:52:36Z</dc:date>
    </item>
    <item>
      <title>Re: Puling values from the repeat to a calculation</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/puling-values-from-the-repeat-to-a-calculation/m-p/787687#M7548</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guy,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just checking, but the numeric values (5, 6, 7, 18) are based on the values within the repeat, correct?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is technically doable within Survey123, though the workflow is not intuitive. &amp;nbsp;This can be accomplished by have a question within the repeat that does the calculation&lt;/P&gt;&lt;PRE&gt;${repeat_value}&amp;nbsp;/ sum(${repeat_value}) * log (&lt;SPAN&gt;${repeat_&lt;/SPAN&gt;&lt;SPAN&gt;value&lt;/SPAN&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;/ &lt;/SPAN&gt;&lt;SPAN&gt;sum(${repeat_&lt;/SPAN&gt;&lt;SPAN&gt;value&lt;/SPAN&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;SPAN&gt;))&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;and then have a question that sums the&amp;nbsp;calculation in the parent form.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The&amp;nbsp;issue is that the sum(${repeat_value}) function will base its calculation initially on the value of the currently entered in values (i.e., 5 after the first repeat, 11&amp;nbsp;after the second, 18 after the third); the user filling in the form will need to page through the repeats after completion to update the calculation and get correct values.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Apr 2018 17:54:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/puling-values-from-the-repeat-to-a-calculation/m-p/787687#M7548</guid>
      <dc:creator>JamesTedrick</dc:creator>
      <dc:date>2018-04-30T17:54:32Z</dc:date>
    </item>
    <item>
      <title>Re: Puling values from the repeat to a calculation</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/puling-values-from-the-repeat-to-a-calculation/m-p/787688#M7549</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear James,&lt;/P&gt;&lt;P&gt;Thank you for your prompt response. The equation works perfectly and solved the problem.&lt;/P&gt;&lt;P&gt;I was excited to see that.&lt;/P&gt;&lt;P&gt;Thanks again,&lt;/P&gt;&lt;P&gt;Guy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 May 2018 07:06:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/puling-values-from-the-repeat-to-a-calculation/m-p/787688#M7549</guid>
      <dc:creator>GuyNizry</dc:creator>
      <dc:date>2018-05-02T07:06:53Z</dc:date>
    </item>
  </channel>
</rss>

