<?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 If calculated value is between give it a text value Survey123 in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/if-calculated-value-is-between-give-it-a-text/m-p/776036#M4993</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In my Survey123 form, I have a calculation that totals the values of several questions give the calculation a total score. What I would like to do next is calculate if the value is between 0 and 5 give it a text description of X, if the value is between 6 and 2 give it a different text description and so on and so forth.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this possible, and if so how would I do that?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 22 May 2018 19:00:08 GMT</pubDate>
    <dc:creator>DavidBuehler</dc:creator>
    <dc:date>2018-05-22T19:00:08Z</dc:date>
    <item>
      <title>If calculated value is between give it a text value Survey123</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/if-calculated-value-is-between-give-it-a-text/m-p/776036#M4993</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In my Survey123 form, I have a calculation that totals the values of several questions give the calculation a total score. What I would like to do next is calculate if the value is between 0 and 5 give it a text description of X, if the value is between 6 and 2 give it a different text description and so on and so forth.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this possible, and if so how would I do that?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 May 2018 19:00:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/if-calculated-value-is-between-give-it-a-text/m-p/776036#M4993</guid>
      <dc:creator>DavidBuehler</dc:creator>
      <dc:date>2018-05-22T19:00:08Z</dc:date>
    </item>
    <item>
      <title>Re: If calculated value is between give it a text value Survey123</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/if-calculated-value-is-between-give-it-a-text/m-p/776037#M4994</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi David,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This can be done using nested if statements. &amp;nbsp;I assume in the above statement you wanted 6-12:&lt;/P&gt;&lt;P&gt;if(${q} &amp;gt;= 0 and ${q} &amp;lt;= 5, "0-5 value", if(${q} &amp;gt;= 6 and ${q} &amp;lt;= 12, "6-12 value", "value is less than 0, greater than 12, or between 5.01 and 5.99"). &amp;nbsp;Depending on the exact circumstances (which values are possible, whether this in an integer or decimal), this statement can be simplified (for example, removing the upper and lower bounds checks if it is impossible that a score exceeds the range).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 May 2018 03:24:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/if-calculated-value-is-between-give-it-a-text/m-p/776037#M4994</guid>
      <dc:creator>JamesTedrick</dc:creator>
      <dc:date>2018-05-23T03:24:38Z</dc:date>
    </item>
    <item>
      <title>Re: If calculated value is between give it a text value Survey123</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/if-calculated-value-is-between-give-it-a-text/m-p/776038#M4995</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi James,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The best way I can describe one of them is parallel calculations.&amp;nbsp; Based on the way the questions are answered gives a total score.&amp;nbsp; based on that total score tell me if it is a high priority, medium priority, etc.&amp;nbsp; based on a value range.&amp;nbsp; I would like to display the high, medium, low, etc. message based on the value ranges.&amp;nbsp; These fields will be integer scores.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The other calculation is going to give the user a option message.&amp;nbsp; Based on the values of the questions give some secondary fields values then calculate those into another message based a value range.&lt;/P&gt;&lt;P&gt;my calculation would&amp;nbsp; if(${spalling} = 1, "1"), if(${spalling} = 0 , "0")&amp;nbsp; and there will be a series of these values that get added up&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is that possible?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jun 2018 21:46:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/if-calculated-value-is-between-give-it-a-text/m-p/776038#M4995</guid>
      <dc:creator>DavidBuehler</dc:creator>
      <dc:date>2018-06-07T21:46:04Z</dc:date>
    </item>
    <item>
      <title>Re: If calculated value is between give it a text value Survey123</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/if-calculated-value-is-between-give-it-a-text/m-p/776039#M4996</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi David,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes this should be possible- in that case the "0-5 value" could be though of as "Low" and the next as "medium", etc. &amp;nbsp;You can use the results of these calculations in the calculation field of a note question to display the results in the form.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jun 2018 21:53:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/if-calculated-value-is-between-give-it-a-text/m-p/776039#M4996</guid>
      <dc:creator>JamesTedrick</dc:creator>
      <dc:date>2018-06-07T21:53:19Z</dc:date>
    </item>
    <item>
      <title>Re: If calculated value is between give it a text value Survey123</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/if-calculated-value-is-between-give-it-a-text/m-p/776040#M4997</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi James,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I figured out a simple calculation based on the value entered from the previous question, but I am having trouble with my nested if statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(${joint_separation}=16, 2, if(${joint_separation}=8, 1, if(${joint_separation}=0,0)))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;basically if the value from joint separation is 16 give it a value of 2, if it is 8 give it a 1, and if it is 0 give it 0.&amp;nbsp; I keep getting an error of "the problem was located in calculate expression for ${join_calc}.&amp;nbsp; if requires 3 arguments, only 2 provided.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What am I missing?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jun 2018 20:45:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/if-calculated-value-is-between-give-it-a-text/m-p/776040#M4997</guid>
      <dc:creator>DavidBuehler</dc:creator>
      <dc:date>2018-06-11T20:45:48Z</dc:date>
    </item>
    <item>
      <title>Re: If calculated value is between give it a text value Survey123</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/if-calculated-value-is-between-give-it-a-text/m-p/776041#M4998</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nevermind, apparently I needed an extra zero at the end.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jun 2018 20:58:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/if-calculated-value-is-between-give-it-a-text/m-p/776041#M4998</guid>
      <dc:creator>DavidBuehler</dc:creator>
      <dc:date>2018-06-11T20:58:20Z</dc:date>
    </item>
    <item>
      <title>Re: If calculated value is between give it a text value Survey123</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/if-calculated-value-is-between-give-it-a-text/m-p/776042#M4999</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If figured it out based referencing this:&amp;nbsp;&lt;A class="link-titled" href="https://exceljet.net/formula/nested-if-function-example" title="https://exceljet.net/formula/nested-if-function-example"&gt;Excel formula: Nested IF function example | Exceljet&lt;/A&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My examples&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(${workorder_calc}&amp;gt; 1, "REPLACE", if(${workorder_calc} = 1, "OPTION TO REPAIR", if(${workorder_calc}=0,"REPAIR",'')))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(${joint_seperation}=16, 2, if(${joint_seperation}=8, 1, if(${joint_seperation}=0,0,0)))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jun 2018 13:08:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/if-calculated-value-is-between-give-it-a-text/m-p/776042#M4999</guid>
      <dc:creator>DavidBuehler</dc:creator>
      <dc:date>2018-06-14T13:08:20Z</dc:date>
    </item>
  </channel>
</rss>

