<?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: Use two fields for symbology on only one value in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/use-two-fields-for-symbology-on-only-one-value/m-p/1405501#M81425</link>
    <description>&lt;P&gt;Another option is an Arcade script in your symbology.&amp;nbsp; &lt;STRONG&gt;The code below is&amp;nbsp;mostly&amp;nbsp;pseudocode&lt;/STRONG&gt;, so you'll need to adapt it to your actual field names &amp;amp; the type value for 'Storm Water'.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;if ($feature.typeField == 'Storm Water')
{
  return `${$feature.typeField} ${$feature.secondField}`
}
else
{
  return $feature.typeField
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also note: If you have a coded domain, the pseudo code above works exclusively with the raw codes, and not the alias.&amp;nbsp; Below is pseudocode for the alias:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;if (DomainName($feature, 'typeField') = 'Storm Water')
{
  return `${DomainName($feature, 'typeField')} ${DomainName($feature, 'secondField')}`
}
else
{
  return DomainName($feature, 'typeField')
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As an aside, if you aren't familiar with the backtick notation in Line 3, it's a way of writing your variables directly in-line with your formatting, similar to Python's f-strings.&amp;nbsp; Variables go in curly braces preceded by a dollar sign: ${variablehere}.&amp;nbsp; Anything else is treated as part of the string and is displayed as-is, including line breaks.&lt;/P&gt;&lt;P&gt;If your typeField is "Storm Water" and your secondField is "Foobar" then the result returned by line 3 would be "Storm Water Foobar"&lt;/P&gt;</description>
    <pubDate>Wed, 03 Apr 2024 22:28:53 GMT</pubDate>
    <dc:creator>MErikReedAugusta</dc:creator>
    <dc:date>2024-04-03T22:28:53Z</dc:date>
    <item>
      <title>Use two fields for symbology on only one value</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/use-two-fields-for-symbology-on-only-one-value/m-p/1405388#M81389</link>
      <description>&lt;P&gt;I have my symbology set to unique values with one field currently, and the outcome is MOSTLY what I want. They layer is symbolized by the "Type" field which splits it up based on the coded domain options that correspond to a department. One department is asking for only their data to be split up further by a second field. Is there a way to only change the symbology for this one value?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ex.&lt;/P&gt;&lt;P&gt;Maintenance&lt;/P&gt;&lt;P&gt;Horticulture&lt;/P&gt;&lt;P&gt;Storm Water&lt;/P&gt;&lt;P&gt;Storm Water Pre Storm&lt;/P&gt;&lt;P&gt;Storm Water Post Storm&lt;/P&gt;</description>
      <pubDate>Wed, 03 Apr 2024 18:45:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/use-two-fields-for-symbology-on-only-one-value/m-p/1405388#M81389</guid>
      <dc:creator>MikhaylaB</dc:creator>
      <dc:date>2024-04-03T18:45:23Z</dc:date>
    </item>
    <item>
      <title>Re: Use two fields for symbology on only one value</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/use-two-fields-for-symbology-on-only-one-value/m-p/1405431#M81400</link>
      <description>&lt;P&gt;You could make two copies of the same layer, put a definition query on the first one "where TYPE does not equal storm" and just symbolize this by type like normal, then on the other copy have the definition query "where TYPE equals storm", then symbolize this layer by your other field.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Apr 2024 19:53:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/use-two-fields-for-symbology-on-only-one-value/m-p/1405431#M81400</guid>
      <dc:creator>marksm_macomb</dc:creator>
      <dc:date>2024-04-03T19:53:01Z</dc:date>
    </item>
    <item>
      <title>Re: Use two fields for symbology on only one value</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/use-two-fields-for-symbology-on-only-one-value/m-p/1405501#M81425</link>
      <description>&lt;P&gt;Another option is an Arcade script in your symbology.&amp;nbsp; &lt;STRONG&gt;The code below is&amp;nbsp;mostly&amp;nbsp;pseudocode&lt;/STRONG&gt;, so you'll need to adapt it to your actual field names &amp;amp; the type value for 'Storm Water'.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;if ($feature.typeField == 'Storm Water')
{
  return `${$feature.typeField} ${$feature.secondField}`
}
else
{
  return $feature.typeField
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also note: If you have a coded domain, the pseudo code above works exclusively with the raw codes, and not the alias.&amp;nbsp; Below is pseudocode for the alias:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;if (DomainName($feature, 'typeField') = 'Storm Water')
{
  return `${DomainName($feature, 'typeField')} ${DomainName($feature, 'secondField')}`
}
else
{
  return DomainName($feature, 'typeField')
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As an aside, if you aren't familiar with the backtick notation in Line 3, it's a way of writing your variables directly in-line with your formatting, similar to Python's f-strings.&amp;nbsp; Variables go in curly braces preceded by a dollar sign: ${variablehere}.&amp;nbsp; Anything else is treated as part of the string and is displayed as-is, including line breaks.&lt;/P&gt;&lt;P&gt;If your typeField is "Storm Water" and your secondField is "Foobar" then the result returned by line 3 would be "Storm Water Foobar"&lt;/P&gt;</description>
      <pubDate>Wed, 03 Apr 2024 22:28:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/use-two-fields-for-symbology-on-only-one-value/m-p/1405501#M81425</guid>
      <dc:creator>MErikReedAugusta</dc:creator>
      <dc:date>2024-04-03T22:28:53Z</dc:date>
    </item>
    <item>
      <title>Re: Use two fields for symbology on only one value</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/use-two-fields-for-symbology-on-only-one-value/m-p/1405505#M81427</link>
      <description>&lt;P&gt;Also, a caveat to this approach: If you have a possible label class that doesn't exist in your underlying data, it won't show up in the legend.&amp;nbsp; For example, if "Storm Water Foobar" is a valid result, but none of your features have the combination of "Storm Water" and "Foobar", then it doesn't get generated.&lt;/P&gt;&lt;P&gt;And unfortunately, manually adding results to the list like you would for a non-Arcade symbology isn't currently possible, though there's an Idea about it here that you may want to consider upvoting:&amp;nbsp;&lt;A href="https://community.esri.com/t5/arcgis-pro-ideas/add-unlisted-values-in-arcade-driven-symbology/idi-p/1336990" target="_blank"&gt;https://community.esri.com/t5/arcgis-pro-ideas/add-unlisted-values-in-arcade-driven-symbology/idi-p/1336990&lt;/A&gt;&lt;/P&gt;&lt;P&gt;The current workaround for these cases is to create a temporary feature that&amp;nbsp;&lt;EM&gt;does&lt;/EM&gt; have that combination, then refresh your symbology, and then cancel the edit session with the temporary feature.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Apr 2024 22:32:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/use-two-fields-for-symbology-on-only-one-value/m-p/1405505#M81427</guid>
      <dc:creator>MErikReedAugusta</dc:creator>
      <dc:date>2024-04-03T22:32:03Z</dc:date>
    </item>
    <item>
      <title>Re: Use two fields for symbology on only one value</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/use-two-fields-for-symbology-on-only-one-value/m-p/1405540#M81434</link>
      <description>&lt;P&gt;What kind of geodatabase? I.e., Oracle enterprise geodatabase?&lt;/P&gt;&lt;P&gt;You could use a database view or a query layer to combine the two fields into a SQL calculated field. Then symbolize on that calculated field.&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.w3schools.com/sql/sql_case.asp" target="_blank" rel="noopener"&gt;https://www.w3schools.com/sql/sql_case.asp&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Apr 2024 10:47:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/use-two-fields-for-symbology-on-only-one-value/m-p/1405540#M81434</guid>
      <dc:creator>Bud</dc:creator>
      <dc:date>2024-04-04T10:47:40Z</dc:date>
    </item>
    <item>
      <title>Re: Use two fields for symbology on only one value</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/use-two-fields-for-symbology-on-only-one-value/m-p/1405543#M81435</link>
      <description>&lt;P&gt;Bear in mind that if TYPE is null, it won’t be captured by either of those SQL expressions. But that’s easily fixable if needed:&lt;/P&gt;&lt;PRE&gt;(TYPE=‘STORM’ OR TYPE IS NULL)&lt;/PRE&gt;</description>
      <pubDate>Thu, 04 Apr 2024 00:53:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/use-two-fields-for-symbology-on-only-one-value/m-p/1405543#M81435</guid>
      <dc:creator>Bud</dc:creator>
      <dc:date>2024-04-04T00:53:34Z</dc:date>
    </item>
    <item>
      <title>Re: Use two fields for symbology on only one value</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/use-two-fields-for-symbology-on-only-one-value/m-p/1405645#M81445</link>
      <description>&lt;P&gt;Thanks for the detailed explanation; I think this is how I'm going to handle it. It is a coded domain, so I'm going to tweak your second example for my data.&lt;/P&gt;</description>
      <pubDate>Thu, 04 Apr 2024 11:13:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/use-two-fields-for-symbology-on-only-one-value/m-p/1405645#M81445</guid>
      <dc:creator>MikhaylaB</dc:creator>
      <dc:date>2024-04-04T11:13:46Z</dc:date>
    </item>
  </channel>
</rss>

