<?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: Syntax for calculations referencing a specific repeat record in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/syntax-for-calculations-referencing-a-specific/m-p/858376#M25256</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why do you have all of these as type text?&amp;nbsp; Then you bind to int.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would think just make the type in column 1 decimal.&amp;nbsp; I think its getting confused as to what type it should be.&amp;nbsp; Line 58 works since it is decimal.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just a guess.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 25 Oct 2019 18:23:56 GMT</pubDate>
    <dc:creator>DougBrowning</dc:creator>
    <dc:date>2019-10-25T18:23:56Z</dc:date>
    <item>
      <title>Syntax for calculations referencing a specific repeat record</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/syntax-for-calculations-referencing-a-specific/m-p/858368#M25248</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there a pulldata() syntax or some other way to perform calculations on a specific/previous record or records within a repeat? I am trying to make a series of calculations that compare the values between sequential records in a repeat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, I have a repeat for collecting data for trees adjacent to a sample location.&amp;nbsp; For report formatting purposes, these need to be recorded in descending&amp;nbsp;diameter&amp;nbsp;(largest tree to smallest). Within the repeat I have two user-entry fields ${treespecies} and ${treediameter}.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to also include a&amp;nbsp;note&amp;nbsp;to alert the user if they enter a value larger than a value in a previous repeat. I was hoping to use the Relevant function with a formula along the lines of:&lt;/P&gt;&lt;P&gt;(${treediamater, [previous value]} &amp;gt;=&amp;nbsp;&lt;SPAN&gt;${treediamater, [current value]}).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another useful alert would be for assigning values for unusually large trees, for example a warning if a tree diameter is more than double the average diameter across all repeat entries.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Oct 2019 18:36:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/syntax-for-calculations-referencing-a-specific/m-p/858368#M25248</guid>
      <dc:creator>ByronTsang</dc:creator>
      <dc:date>2019-10-22T18:36:59Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax for calculations referencing a specific repeat record</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/syntax-for-calculations-referencing-a-specific/m-p/858369#M25249</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Byron,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There currently isn't a direct method for accessing a previous repeat's value in another repeat.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Oct 2019 21:19:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/syntax-for-calculations-referencing-a-specific/m-p/858369#M25249</guid>
      <dc:creator>JamesTedrick</dc:creator>
      <dc:date>2019-10-24T21:19:02Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax for calculations referencing a specific repeat record</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/syntax-for-calculations-referencing-a-specific/m-p/858370#M25250</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So after a repeat I get a decimal calculation, but I am not allowed to extract that value and use it in another calculation?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Oct 2019 21:34:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/syntax-for-calculations-referencing-a-specific/m-p/858370#M25250</guid>
      <dc:creator>RobertGeitner</dc:creator>
      <dc:date>2019-10-24T21:34:25Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax for calculations referencing a specific repeat record</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/syntax-for-calculations-referencing-a-specific/m-p/858371#M25251</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you are for sure doing them in order then my trick listed here should work&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/thread/241309"&gt;Populate a field within a repeat from a previous entry within same repeat?&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use sum and count across a repeat to handle your other question.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;See here&amp;nbsp;&amp;nbsp;&lt;A class="link-titled" href="https://doc.arcgis.com/en/survey123/desktop/create-surveys/xlsformformulas.htm" title="https://doc.arcgis.com/en/survey123/desktop/create-surveys/xlsformformulas.htm"&gt;Formulas—Survey123 for ArcGIS | Documentation&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Oct 2019 22:41:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/syntax-for-calculations-referencing-a-specific/m-p/858371#M25251</guid>
      <dc:creator>DougBrowning</dc:creator>
      <dc:date>2019-10-24T22:41:35Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax for calculations referencing a specific repeat record</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/syntax-for-calculations-referencing-a-specific/m-p/858372#M25252</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Doug and James,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have been working on this for about 4 months, and I can get the calculations I need from the repeat outside the repeat.&amp;nbsp; Everything worked fine on that, and I can see the calculations value as a decimal in connect outside the repeat.&amp;nbsp; I then want to use that decimal to use in one final calculation but for some reason it turns those decimal values into a 0 or a 1.&amp;nbsp; I actually put the calculations in the 'label column' as well so in Connect I can actually see the values they are pulling and that is how I know they are using 0s and 1s.&amp;nbsp; I would like to attach the file and have one of you look at it because I am utterly beat at this point.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know what you find!&amp;nbsp; Your help would be much appreciated.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Oct 2019 15:11:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/syntax-for-calculations-referencing-a-specific/m-p/858372#M25252</guid>
      <dc:creator>RobertGeitner</dc:creator>
      <dc:date>2019-10-25T15:11:46Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax for calculations referencing a specific repeat record</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/syntax-for-calculations-referencing-a-specific/m-p/858373#M25253</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;James,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am only returning 0s and 1s from my calculation, yet it is a decimal between 0 and 1.&amp;nbsp; I have attempted to edit the bind:type as well as the type to see if I insert int. or decimal and nothing seems to come back correct.&amp;nbsp; Do you have any idea what I am doing wrong?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Oct 2019 17:12:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/syntax-for-calculations-referencing-a-specific/m-p/858373#M25253</guid>
      <dc:creator>RobertGeitner</dc:creator>
      <dc:date>2019-10-25T17:12:03Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax for calculations referencing a specific repeat record</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/syntax-for-calculations-referencing-a-specific/m-p/858374#M25254</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You did not attach anything.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Oct 2019 17:33:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/syntax-for-calculations-referencing-a-specific/m-p/858374#M25254</guid>
      <dc:creator>DougBrowning</dc:creator>
      <dc:date>2019-10-25T17:33:39Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax for calculations referencing a specific repeat record</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/syntax-for-calculations-referencing-a-specific/m-p/858375#M25255</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Doug,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry, the real issue is that my calculation work but when I go to use them in a proceeding calculation they turn into 1's or 0's.&amp;nbsp; Thanks for the help.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Cheers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Oct 2019 17:56:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/syntax-for-calculations-referencing-a-specific/m-p/858375#M25255</guid>
      <dc:creator>RobertGeitner</dc:creator>
      <dc:date>2019-10-25T17:56:45Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax for calculations referencing a specific repeat record</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/syntax-for-calculations-referencing-a-specific/m-p/858376#M25256</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why do you have all of these as type text?&amp;nbsp; Then you bind to int.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would think just make the type in column 1 decimal.&amp;nbsp; I think its getting confused as to what type it should be.&amp;nbsp; Line 58 works since it is decimal.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just a guess.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Oct 2019 18:23:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/syntax-for-calculations-referencing-a-specific/m-p/858376#M25256</guid>
      <dc:creator>DougBrowning</dc:creator>
      <dc:date>2019-10-25T18:23:56Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax for calculations referencing a specific repeat record</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/syntax-for-calculations-referencing-a-specific/m-p/858377#M25257</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Doug,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I changed all the type in Column 1 to either decimals or calculations, and up to line 48 everything works fine as usual. However, I highlighted line 49-53 in red because those calculation values continue to convert to either 0's or 1's.&amp;nbsp; I see the values they are pulling from in Connect and they are the correct number (i.e. .25 or .50), but as soon as I pull those numbers into the next calculation they turn into 0's or 1's so my multiplication is then thrown off.&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried this with multiple different XLSForms and they all seem to do the conversion to 0's and 1's.&amp;nbsp; Not an aggregate issue, just a rounding issue.&amp;nbsp; Can you look at this new version once more?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;PRE __default_attr="danger" __jive_macro_name="alert" alert="danger" class="jive_text_macro jive_macro_alert"&gt;&lt;P&gt;&lt;/P&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Oct 2019 18:48:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/syntax-for-calculations-referencing-a-specific/m-p/858377#M25257</guid>
      <dc:creator>RobertGeitner</dc:creator>
      <dc:date>2019-10-25T18:48:55Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax for calculations referencing a specific repeat record</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/syntax-for-calculations-referencing-a-specific/m-p/858378#M25258</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Robert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the file you submitted today, your decimal questions have a bind::type of int, which indicates that the result will be an integer. Removing that will cause the formula to work correctly&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Oct 2019 20:54:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/syntax-for-calculations-referencing-a-specific/m-p/858378#M25258</guid>
      <dc:creator>JamesTedrick</dc:creator>
      <dc:date>2019-10-25T20:54:10Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax for calculations referencing a specific repeat record</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/syntax-for-calculations-referencing-a-specific/m-p/858379#M25259</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your form is hard to follow with all the converting of numbers.&amp;nbsp; I do not think you need any of that.&amp;nbsp; All the if(0,1) can just bind to int and be done.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Big ones&lt;/P&gt;&lt;P&gt;I moved the end repeat up to line 24 since I think sum must be outside the repeat to work.&lt;/P&gt;&lt;P&gt;49-52 should be decimal type not int&lt;/P&gt;&lt;P&gt;Removed int bind from lines 28 to 52 since these should be decimal.&amp;nbsp; You are doing a div then bind to int so of course you get 0 since it is 0.6666 int drops the digits.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I see values now.&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/469565_pastedImage_1.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Oct 2019 15:15:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/syntax-for-calculations-referencing-a-specific/m-p/858379#M25259</guid>
      <dc:creator>DougBrowning</dc:creator>
      <dc:date>2019-10-28T15:15:19Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax for calculations referencing a specific repeat record</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/syntax-for-calculations-referencing-a-specific/m-p/858380#M25260</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just saw today that Collector now has this kind of.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reuse Field Entries&lt;/P&gt;&lt;P&gt;Now you can easily reuse values that you previously entered into your form to minimize repetitive data entry and spelling mistakes. This can be quite useful when entering frequently used text such as a street name or Inspector.&lt;/P&gt;&lt;P&gt;Directly above the keyboard, in the keyboard accessory view, you can tap on “Recent Values” and find up to 3 previous values entered for that field to choose from.&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://www.esri.com/arcgis-blog/products/collector/field-mobility/whats-new-in-collector-for-arcgis-january-2020/" title="https://www.esri.com/arcgis-blog/products/collector/field-mobility/whats-new-in-collector-for-arcgis-january-2020/"&gt;What’s New in Collector for ArcGIS (January 2020)&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jan 2020 21:00:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/syntax-for-calculations-referencing-a-specific/m-p/858380#M25260</guid>
      <dc:creator>DougBrowning</dc:creator>
      <dc:date>2020-01-07T21:00:06Z</dc:date>
    </item>
  </channel>
</rss>

