<?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 Calculation help in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/calculation-help/m-p/867716#M27370</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good Afternoon I am building a Water Quality field data sheet and I am hoping someone can help me out.&amp;nbsp; Our water Quality crews go out and take up to 4 but not always 4 could be 3,2,or 1 measurements.&amp;nbsp; After taking the measurements they perform a calculation to determine if the measurements are within 10% of each other.&amp;nbsp; The calculation I have come up with is below.&amp;nbsp; I am wondering how if there is a way to make it so the value returned is always positive.&amp;nbsp; For example is the first measurement is 5.7 and the second is 6.2 the value returned is&amp;nbsp;-8.403361344537814. I would like it to be returned as a positive number.&amp;nbsp; I am also wondering if there is a way to control the number of decimal places that are returned.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;(${secchi_depth} - ${secchi_depth_a}) div ((${secchi_depth} + ${secchi_depth_a}) div 2) *100&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Dan Senner&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 27 May 2020 19:02:52 GMT</pubDate>
    <dc:creator>DanielSenner1</dc:creator>
    <dc:date>2020-05-27T19:02:52Z</dc:date>
    <item>
      <title>Calculation help</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/calculation-help/m-p/867716#M27370</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good Afternoon I am building a Water Quality field data sheet and I am hoping someone can help me out.&amp;nbsp; Our water Quality crews go out and take up to 4 but not always 4 could be 3,2,or 1 measurements.&amp;nbsp; After taking the measurements they perform a calculation to determine if the measurements are within 10% of each other.&amp;nbsp; The calculation I have come up with is below.&amp;nbsp; I am wondering how if there is a way to make it so the value returned is always positive.&amp;nbsp; For example is the first measurement is 5.7 and the second is 6.2 the value returned is&amp;nbsp;-8.403361344537814. I would like it to be returned as a positive number.&amp;nbsp; I am also wondering if there is a way to control the number of decimal places that are returned.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;(${secchi_depth} - ${secchi_depth_a}) div ((${secchi_depth} + ${secchi_depth_a}) div 2) *100&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Dan Senner&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 May 2020 19:02:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/calculation-help/m-p/867716#M27370</guid>
      <dc:creator>DanielSenner1</dc:creator>
      <dc:date>2020-05-27T19:02:52Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation help</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/calculation-help/m-p/867717#M27371</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There doesn't seem to be support for an absolute value function, so I've gotten around that by taking the second power and then the square-root so that it is always positive. (sqrt(pow((YOUR_FORMULA),2))&lt;/P&gt;&lt;P&gt;To control the decimal places use &lt;STRONG&gt;round(&lt;/STRONG&gt;sqrt(pow((YOUR_FORMULA),2)),&lt;STRONG&gt;3)&amp;nbsp;&lt;/STRONG&gt;-in this case it's rounding it to 3 decimal places.&lt;/P&gt;&lt;P&gt;This page should be a helpful reference:&lt;/P&gt;&lt;P&gt;&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>Fri, 19 Jun 2020 20:22:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/calculation-help/m-p/867717#M27371</guid>
      <dc:creator>KatherineZybko</dc:creator>
      <dc:date>2020-06-19T20:22:35Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation help</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/calculation-help/m-p/867718#M27372</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Katherine, thank you for the above recommendation.&amp;nbsp; When I tried to use this example&amp;nbsp;round&lt;STRONG style="background-color: #ffffff; border: 0px; font-weight: bold;"&gt;(&lt;/STRONG&gt;&lt;SPAN style="background-color: #ffffff;"&gt;sqrt(pow((YOUR_FORMULA),2)),&lt;/SPAN&gt;3) I keep getting unbalanced brackets and I cannot seem to figure out what I am doing wrong.&amp;nbsp; I put my formula in from above where you say to put it but no luck.&amp;nbsp; Any additional help or guidance with this would be appreciated.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Dan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Jun 2020 20:09:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/calculation-help/m-p/867718#M27372</guid>
      <dc:creator>DanielSenner1</dc:creator>
      <dc:date>2020-06-29T20:09:35Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation help</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/calculation-help/m-p/867719#M27373</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I did mine with an if instead.&lt;/P&gt;&lt;P&gt;from a repeat of shots&lt;/P&gt;&lt;P&gt;if(sum(${ElevationChange1})&amp;gt;0, sum(${ElevationChange1}), sum(${ElevationChange1}) * -1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then compare across passes&lt;/P&gt;&lt;P&gt;100* ((${TotalElevationChangePass1} - ${TotalElevationChangePass2}) div ${TotalElevationChangePass1})&lt;/P&gt;&lt;P&gt;Again the negative in a hidden field just to make it easier to read&lt;/P&gt;&lt;P&gt;if(${SumCalc} &amp;gt; 0, round(${SumCalc},1), round(${SumCalc}*-1,1))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then I have a note&amp;nbsp;&lt;/P&gt;&lt;P&gt;Pass 3 is needed&amp;nbsp; with a relevant of&amp;nbsp;&amp;nbsp;${SumCompare} &amp;gt; 10 " Pass 1 and Pass 2 are not within 10%"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Seems to be working so far.&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>Mon, 29 Jun 2020 20:55:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/calculation-help/m-p/867719#M27373</guid>
      <dc:creator>DougBrowning</dc:creator>
      <dc:date>2020-06-29T20:55:56Z</dc:date>
    </item>
  </channel>
</rss>

