<?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 Does Survey123 support the absolute value function? in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/does-survey123-support-the-absolute-value-function/m-p/869886#M27876</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible use the absolute value function in survey123? I need to formulate a logic statement based on the weight difference of two things. Example: "If the difference is &amp;gt; 0.3, the test fails." I have not seen any examples online showing absolute value. Any solutions or work arounds you know of would be greatly appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 31 May 2017 14:48:32 GMT</pubDate>
    <dc:creator>KaraHarmet</dc:creator>
    <dc:date>2017-05-31T14:48:32Z</dc:date>
    <item>
      <title>Does Survey123 support the absolute value function?</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/does-survey123-support-the-absolute-value-function/m-p/869886#M27876</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible use the absolute value function in survey123? I need to formulate a logic statement based on the weight difference of two things. Example: "If the difference is &amp;gt; 0.3, the test fails." I have not seen any examples online showing absolute value. Any solutions or work arounds you know of would be greatly appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 May 2017 14:48:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/does-survey123-support-the-absolute-value-function/m-p/869886#M27876</guid>
      <dc:creator>KaraHarmet</dc:creator>
      <dc:date>2017-05-31T14:48:32Z</dc:date>
    </item>
    <item>
      <title>Re: Does Survey123 support the absolute value function?</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/does-survey123-support-the-absolute-value-function/m-p/869887#M27877</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG __jive_id="354793" alt="" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/354793_ABS.png" style="width: 620px; height: 80px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the absence of the abs() function, will the above work for you?&lt;/P&gt;&lt;P&gt;You could keep the Calcu question as a 'calculate' and then use that variable in other expressions.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 May 2017 15:26:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/does-survey123-support-the-absolute-value-function/m-p/869887#M27877</guid>
      <dc:creator>IsmaelChivite</dc:creator>
      <dc:date>2017-05-31T15:26:38Z</dc:date>
    </item>
    <item>
      <title>Re: Does Survey123 support the absolute value function?</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/does-survey123-support-the-absolute-value-function/m-p/869888#M27878</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This worked!!! Thank you so much!! Could you explain the language of the calculation in the 3rd row or point me toward a resource that would explain it? I'd like to understand it a bit further. Thank you!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 May 2017 16:40:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/does-survey123-support-the-absolute-value-function/m-p/869888#M27878</guid>
      <dc:creator>KaraHarmet</dc:creator>
      <dc:date>2017-05-31T16:40:09Z</dc:date>
    </item>
    <item>
      <title>Re: Does Survey123 support the absolute value function?</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/does-survey123-support-the-absolute-value-function/m-p/869889#M27879</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kara,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The statement says:&lt;/P&gt;&lt;P&gt;1) Treat the answer as text and look at the first character of the answer. &amp;nbsp;See if it is a minus sign ( - )&lt;/P&gt;&lt;P&gt;2) If yes, grab everything in the answer except for the minus sign (from character in position 1 - *the second character* - to the end of the answer) and make that the value&lt;/P&gt;&lt;P&gt;3) In not, just give value of the question being looked at&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the equivalent using numeric evaluation would be&amp;nbsp;&lt;/P&gt;&lt;P&gt;if(${question} &amp;lt; 0, ${question} * -1, ${question})&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 May 2017 16:54:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/does-survey123-support-the-absolute-value-function/m-p/869889#M27879</guid>
      <dc:creator>JamesTedrick</dc:creator>
      <dc:date>2017-05-31T16:54:02Z</dc:date>
    </item>
    <item>
      <title>Re: Does Survey123 support the absolute value function?</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/does-survey123-support-the-absolute-value-function/m-p/869890#M27880</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kara.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I used operators and functions as described in this help topic: &lt;A class="link-titled" href="http://doc.arcgis.com/en/survey123/desktop/create-surveys/xlsformformulas.htm" title="http://doc.arcgis.com/en/survey123/desktop/create-surveys/xlsformformulas.htm"&gt;Formulas—Survey123 for ArcGIS | ArcGIS&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Essentially:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;substr() is used to extract portions of a string. I use&amp;nbsp; it for&amp;nbsp; example to extract the first character, which in our&amp;nbsp; case&amp;nbsp; could be either&amp;nbsp; a minus sign (which we&amp;nbsp; will want to remove later) or a digit. This function takes three inputs:&lt;UL&gt;&lt;LI&gt;The string from which you want to extract a substring&lt;/LI&gt;&lt;LI&gt;The character position from which you want to start substracing&lt;/LI&gt;&lt;LI&gt;The number of characters to remove&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;string-length() is&amp;nbsp; used to calculate the total length of a string.&lt;/LI&gt;&lt;LI&gt;if(). the if statement allows&amp;nbsp; you evaluate an expression. If the expression evaluates to true, you can output one value, and if it evaluates to false, you output another value.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is no single way to solve this, as shown by James above. There may be other ways to solve it too.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 May 2017 16:59:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/does-survey123-support-the-absolute-value-function/m-p/869890#M27880</guid>
      <dc:creator>IsmaelChivite</dc:creator>
      <dc:date>2017-05-31T16:59:07Z</dc:date>
    </item>
    <item>
      <title>Re: Does Survey123 support the absolute value function?</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/does-survey123-support-the-absolute-value-function/m-p/869891#M27881</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you so much!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 May 2017 17:44:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/does-survey123-support-the-absolute-value-function/m-p/869891#M27881</guid>
      <dc:creator>KaraHarmet</dc:creator>
      <dc:date>2017-05-31T17:44:54Z</dc:date>
    </item>
    <item>
      <title>Re: Does Survey123 support the absolute value function?</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/does-survey123-support-the-absolute-value-function/m-p/869892#M27882</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 May 2017 17:45:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/does-survey123-support-the-absolute-value-function/m-p/869892#M27882</guid>
      <dc:creator>KaraHarmet</dc:creator>
      <dc:date>2017-05-31T17:45:26Z</dc:date>
    </item>
    <item>
      <title>Re: Does Survey123 support the absolute value function?</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/does-survey123-support-the-absolute-value-function/m-p/869893#M27883</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just for future reference, if anyone comes across this...&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://doc.arcgis.com/en/survey123/desktop/create-surveys/xlsformformulas.htm#ESRI_SECTION1_DB5A29AC645F4AE585D7CEA9E6D5A36B" title="http://doc.arcgis.com/en/survey123/desktop/create-surveys/xlsformformulas.htm#ESRI_SECTION1_DB5A29AC645F4AE585D7CEA9E6D5A36B"&gt;Formulas—Survey123 for ArcGIS | ArcGIS&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Under the calculations section they talk about the substr function.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Jun 2017 15:48:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/does-survey123-support-the-absolute-value-function/m-p/869893#M27883</guid>
      <dc:creator>KaraHarmet</dc:creator>
      <dc:date>2017-06-02T15:48:39Z</dc:date>
    </item>
    <item>
      <title>Re: Does Survey123 support the absolute value function?</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/does-survey123-support-the-absolute-value-function/m-p/869894#M27884</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you want to calculate it in a single Calculation field, you can also do the following:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;sqrt(pow(${number1} - ${number2},2))&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;I squared the number and then took the square root. The result will always be positive.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Jan 2019 16:47:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/does-survey123-support-the-absolute-value-function/m-p/869894#M27884</guid>
      <dc:creator>NicolasRoger</dc:creator>
      <dc:date>2019-01-07T16:47:21Z</dc:date>
    </item>
    <item>
      <title>Re: Does Survey123 support the absolute value function?</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/does-survey123-support-the-absolute-value-function/m-p/1479100#M57112</link>
      <description>&lt;P&gt;Hi All&lt;/P&gt;&lt;P&gt;I found a better way to perform the Absolute math function.&lt;/P&gt;&lt;P&gt;pow(pow(${value},2),0.5)&lt;/P&gt;&lt;P&gt;By squaring a value and the finding its square root you are able to calculate the absolute of a value.&lt;/P&gt;</description>
      <pubDate>Mon, 27 May 2024 13:00:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/does-survey123-support-the-absolute-value-function/m-p/1479100#M57112</guid>
      <dc:creator>DeonLengton</dc:creator>
      <dc:date>2024-05-27T13:00:15Z</dc:date>
    </item>
  </channel>
</rss>

