<?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: Formula for multiple symbology changes in ArcGIS Online Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-questions/formula-for-multiple-symbology-changes/m-p/1569160#M62871</link>
    <description>&lt;P&gt;Hi David,&lt;BR /&gt;My apologies for the delay.&lt;/P&gt;&lt;P&gt;To clarify my use case,&lt;/P&gt;&lt;P&gt;The points on my map are from a template of data that i will use various subsets of regularly.&lt;BR /&gt;The structure of the fields and values will always remain the same.&lt;/P&gt;&lt;P&gt;The points refer to an observation, and the observations are given scores based on their Impact.&lt;BR /&gt;OBS_SCORES field is the weight given to the observation to detail its structural integrity&amp;nbsp;&lt;BR /&gt;(0=None - 99=Destroyed)&lt;BR /&gt;&lt;BR /&gt;OBS_SCOREO is a weighted score given based on its impact on operations&lt;BR /&gt;(0=None - 99=Absolute failure)&lt;BR /&gt;&lt;BR /&gt;Some other observations within the layer are simple comments, and will have 0 scores in both SCORES &amp;amp; SCOREO. And some observations will have both a structural impact, and an operational impact.&lt;/P&gt;&lt;P&gt;IF an observation is structural, id like it one colour (Red for example), if its Operational, another colour (say, blue)&lt;BR /&gt;Now, If its both, i guess i could introduce a third colour.&lt;/P&gt;&lt;P&gt;This will help visually identify the type of observation (Structural of Operational).&lt;/P&gt;&lt;P&gt;THEN,&amp;nbsp;&lt;BR /&gt;Based on the score id like the size of the point on the map to change, to symbolize the severity of the observation.&lt;BR /&gt;For example, Comments and observations that have 0 scores, are just there for reference.&lt;BR /&gt;However, If a SCORES or SCOREO is an 80, i want it much larger to visually emphasize the severity of that observation.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 17 Dec 2024 00:24:10 GMT</pubDate>
    <dc:creator>PipeVision</dc:creator>
    <dc:date>2024-12-17T00:24:10Z</dc:date>
    <item>
      <title>Formula for multiple symbology changes</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/formula-for-multiple-symbology-changes/m-p/1566095#M62752</link>
      <description>&lt;P&gt;Hi there!&lt;/P&gt;&lt;P&gt;I have a Point Layer, Which i want to apply a symbology based on two fields.&lt;/P&gt;&lt;P&gt;I think i understand the logic, but am stuck with how the code needs to be written.&lt;/P&gt;&lt;P&gt;Example:&lt;BR /&gt;IF Field "SCORE_S" &amp;gt;0 i want to colour the points Blue,&lt;BR /&gt;But also, IF "SCORE_S" = 0-10 Size 4pt / 10-29 6pt / 30+ 8pt&lt;/P&gt;&lt;P&gt;AND&lt;/P&gt;&lt;P&gt;IF Field "SCORE_O" &amp;gt;0 Colour Red&lt;BR /&gt;Also -&amp;nbsp; IF&amp;nbsp;"SCORE_O" =&amp;nbsp; 0-10 Size 4pt / 10-29 6pt / 30+ 8pt&lt;/P&gt;&lt;P&gt;Any assistance would be greatly appreciated,&lt;BR /&gt;And am happy to find the solution myself, if only i knew what to search for!&lt;/P&gt;&lt;P&gt;Kind Regards,&lt;/P&gt;</description>
      <pubDate>Sun, 08 Dec 2024 23:58:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/formula-for-multiple-symbology-changes/m-p/1566095#M62752</guid>
      <dc:creator>PipeVision</dc:creator>
      <dc:date>2024-12-08T23:58:16Z</dc:date>
    </item>
    <item>
      <title>Re: Formula for multiple symbology changes</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/formula-for-multiple-symbology-changes/m-p/1566428#M62769</link>
      <description>&lt;P&gt;probably the best way is to create a new field expression so you can classify the combinations and subsequently change the symbology size and colour interactively in the symbology window.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://support.esri.com/en-us/knowledge-base/how-to-assign-colored-symbols-to-attributes-using-arcad-000026986" target="_blank"&gt;https://support.esri.com/en-us/knowledge-base/how-to-assign-colored-symbols-to-attributes-using-arcad-000026986&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;If you replace the code from the above with something along the lines of the below.&amp;nbsp; I'm not entirely sure of the logic that drives the colour changing to red so I've not included that.&amp;nbsp; Can you elaborate on that?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;var score_s = $feature.SCORE_S
var score_o = $feature.SCORE_O

if (score_s &amp;gt; 0 &amp;amp;&amp;amp; score_s &amp;lt; 10 &amp;amp;&amp;amp; score_o &amp;lt; 0 ) {
    return "Blue 9";
} else if (score_s &amp;gt;= 10  &amp;amp;&amp;amp; score_s &amp;lt; 30 &amp;amp;&amp;amp; score_o &amp;lt; 0 ) {
    return "Blue 29";
} else if (score_s &amp;gt;= 30 &amp;amp;&amp;amp; score_o &amp;lt; 0 ) {
    return "Blue 30+"   
}&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 09 Dec 2024 20:26:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/formula-for-multiple-symbology-changes/m-p/1566428#M62769</guid>
      <dc:creator>DavidPike</dc:creator>
      <dc:date>2024-12-09T20:26:07Z</dc:date>
    </item>
    <item>
      <title>Re: Formula for multiple symbology changes</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/formula-for-multiple-symbology-changes/m-p/1569160#M62871</link>
      <description>&lt;P&gt;Hi David,&lt;BR /&gt;My apologies for the delay.&lt;/P&gt;&lt;P&gt;To clarify my use case,&lt;/P&gt;&lt;P&gt;The points on my map are from a template of data that i will use various subsets of regularly.&lt;BR /&gt;The structure of the fields and values will always remain the same.&lt;/P&gt;&lt;P&gt;The points refer to an observation, and the observations are given scores based on their Impact.&lt;BR /&gt;OBS_SCORES field is the weight given to the observation to detail its structural integrity&amp;nbsp;&lt;BR /&gt;(0=None - 99=Destroyed)&lt;BR /&gt;&lt;BR /&gt;OBS_SCOREO is a weighted score given based on its impact on operations&lt;BR /&gt;(0=None - 99=Absolute failure)&lt;BR /&gt;&lt;BR /&gt;Some other observations within the layer are simple comments, and will have 0 scores in both SCORES &amp;amp; SCOREO. And some observations will have both a structural impact, and an operational impact.&lt;/P&gt;&lt;P&gt;IF an observation is structural, id like it one colour (Red for example), if its Operational, another colour (say, blue)&lt;BR /&gt;Now, If its both, i guess i could introduce a third colour.&lt;/P&gt;&lt;P&gt;This will help visually identify the type of observation (Structural of Operational).&lt;/P&gt;&lt;P&gt;THEN,&amp;nbsp;&lt;BR /&gt;Based on the score id like the size of the point on the map to change, to symbolize the severity of the observation.&lt;BR /&gt;For example, Comments and observations that have 0 scores, are just there for reference.&lt;BR /&gt;However, If a SCORES or SCOREO is an 80, i want it much larger to visually emphasize the severity of that observation.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Dec 2024 00:24:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/formula-for-multiple-symbology-changes/m-p/1569160#M62871</guid>
      <dc:creator>PipeVision</dc:creator>
      <dc:date>2024-12-17T00:24:10Z</dc:date>
    </item>
    <item>
      <title>Re: Formula for multiple symbology changes</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/formula-for-multiple-symbology-changes/m-p/1569437#M62879</link>
      <description>&lt;LI-CODE lang="cpp"&gt;var score_s = $feature.SCORE_S
var score_o = $feature.SCORE_O

if (score_s &amp;gt; 0 &amp;amp;&amp;amp; score_o &amp;gt; 0 ) {
    return "Both";

} else if (score_s &amp;gt; 0  &amp;amp;&amp;amp; score_s &amp;lt; 10) {
    return "Structural 9";
} else if (score_s &amp;gt;= 10  &amp;amp;&amp;amp; score_s &amp;lt; 30) {
    return "Structural 29";
} else if (score_s &amp;gt;= 30) {
    return "Structural 30+";

} else if (score_o &amp;gt; 0  &amp;amp;&amp;amp; score_o &amp;lt; 10) {
    return "Operational 9";
} else if (score_o &amp;gt;= 10  &amp;amp;&amp;amp; score_o &amp;lt; 30) {
    return "Operational 29";
} else if (score_o &amp;gt;= 30) {
    return "Operational 30+"

}&lt;/LI-CODE&gt;&lt;P&gt;I think that should give you an idea of what to add for 'Both' using the above sample.&amp;nbsp; &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Dec 2024 18:05:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/formula-for-multiple-symbology-changes/m-p/1569437#M62879</guid>
      <dc:creator>DavidPike</dc:creator>
      <dc:date>2024-12-17T18:05:17Z</dc:date>
    </item>
  </channel>
</rss>

