<?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: Symbolise by maximum value field's name in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/symbolise-by-maximum-value-field-s-name/m-p/1518381#M86781</link>
    <description>&lt;P&gt;Idea:&amp;nbsp;&lt;A href="https://community.esri.com/t5/arcgis-pro-ideas/symbolize-using-the-field-name-that-has-the/idi-p/1518380/highlight/true" target="_self"&gt;Symbolize using the field name that has the maximum value&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 12 Aug 2024 14:14:29 GMT</pubDate>
    <dc:creator>Bud</dc:creator>
    <dc:date>2024-08-12T14:14:29Z</dc:date>
    <item>
      <title>Symbolise by maximum value field's name</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/symbolise-by-maximum-value-field-s-name/m-p/1516020#M86553</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm using ArcGIS Pro 3.3.1.&lt;/P&gt;&lt;P&gt;I have some census data that shows how many people are employed in different industries, say Industry A, Industry B and Industry C. So each polygon has a value for Industry A, Industry B and Industry C.&lt;/P&gt;&lt;P&gt;How can I symbolise the census polygons to show the name of the industry that employs the most people? So if polygon 1 employs most people in Industry C, I want to symbolise it with a specific colour corresponding to Industry C.&lt;/P&gt;&lt;P&gt;Is this possible?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Hanlie&lt;/P&gt;</description>
      <pubDate>Wed, 07 Aug 2024 11:58:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/symbolise-by-maximum-value-field-s-name/m-p/1516020#M86553</guid>
      <dc:creator>HanliePetoors</dc:creator>
      <dc:date>2024-08-07T11:58:37Z</dc:date>
    </item>
    <item>
      <title>Re: Symbolise by maximum value field's name</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/symbolise-by-maximum-value-field-s-name/m-p/1516821#M86637</link>
      <description>&lt;P&gt;Could you create a new field that contains data just for which industry is dominated in that polygon and then symbolize based off of that new field?&lt;/P&gt;</description>
      <pubDate>Thu, 08 Aug 2024 17:35:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/symbolise-by-maximum-value-field-s-name/m-p/1516821#M86637</guid>
      <dc:creator>Laura</dc:creator>
      <dc:date>2024-08-08T17:35:53Z</dc:date>
    </item>
    <item>
      <title>Re: Symbolise by maximum value field's name</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/symbolise-by-maximum-value-field-s-name/m-p/1516843#M86643</link>
      <description>&lt;P&gt;This might sort of help get in that direction but you might have to tweak it a little to make it work with Arcade under Symbology in Pro.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;H1&gt;&lt;A href="https://support.esri.com/en-us/knowledge-base/how-to-compare-values-from-multiple-fields-and-return-t-000027238" target="_self"&gt;&lt;FONT size="4"&gt;Compare values from multiple fields and return the highest and lowest values of a pop-up using Arcade expression in ArcGIS Online&lt;/FONT&gt;&lt;/A&gt;&lt;/H1&gt;</description>
      <pubDate>Thu, 08 Aug 2024 18:11:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/symbolise-by-maximum-value-field-s-name/m-p/1516843#M86643</guid>
      <dc:creator>Ed_</dc:creator>
      <dc:date>2024-08-08T18:11:00Z</dc:date>
    </item>
    <item>
      <title>Re: Symbolise by maximum value field's name</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/symbolise-by-maximum-value-field-s-name/m-p/1516851#M86646</link>
      <description>&lt;OL&gt;&lt;LI&gt;Can you show us some data in a screenshot of the attribute table or in an Excel export of the attribute table?&lt;/LI&gt;&lt;LI&gt;What kind of geodatabase? For example, Oracle 18c enterprise geodatabase.&lt;/LI&gt;&lt;LI&gt;Are there multiple industry fields in the existing data: INDUSTRY_A, INDUSTRY_B, INDUSTRY_C?&lt;/LI&gt;&lt;LI&gt;Do you want a dynamic solution (the data changes over time) or is populating a static MAX_INDUSTRY field via the Field Calculator acceptable?&lt;/LI&gt;&lt;LI&gt;You could post an Idea for this, asking for dynamic,&amp;nbsp;&lt;STRONG&gt;out of the box functionality&lt;/STRONG&gt; (no code) in the symbology pane, to see what Esri says.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Aug 2024 18:40:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/symbolise-by-maximum-value-field-s-name/m-p/1516851#M86646</guid>
      <dc:creator>Bud</dc:creator>
      <dc:date>2024-08-08T18:40:38Z</dc:date>
    </item>
    <item>
      <title>Re: Symbolise by maximum value field's name</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/symbolise-by-maximum-value-field-s-name/m-p/1518194#M86755</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/578538"&gt;@Laura&lt;/a&gt;&amp;nbsp;it's easy enough to find the maximum value but to get the field name corresponding to the maximum value is tricky.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Hanlie&lt;/P&gt;</description>
      <pubDate>Mon, 12 Aug 2024 07:46:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/symbolise-by-maximum-value-field-s-name/m-p/1518194#M86755</guid>
      <dc:creator>HanliePetoors</dc:creator>
      <dc:date>2024-08-12T07:46:12Z</dc:date>
    </item>
    <item>
      <title>Re: Symbolise by maximum value field's name</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/symbolise-by-maximum-value-field-s-name/m-p/1518195#M86756</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/554773"&gt;@Ed_&lt;/a&gt;&amp;nbsp;thanks I managed to do what I wanted with a modified version of this arcade.&lt;/P&gt;&lt;P&gt;I give an example here for source of income, one of the groups of fields that I'm interested in.&lt;/P&gt;&lt;LI-CODE lang="c"&gt;//specify the field names to reference to
var src=[
    $feature.IncmSFrmng,
    $feature.IncmOwnBsns,
    $feature.IncmWgSlry,
    $feature.IncmOldAgPnsn,
    $feature.IncmCshRmtncs,
    $feature.IncmRtrmntIncm,
    $feature.IncmOrphnGrnt,
    $feature.IncmDsbltyGrnt,
    $feature.IncmOthr
]

var max_src=Max(src)

var max_txt = []

//Assigning the highest value
for (var v in src){
    if (src[v] == max_src){
        var kodeer = Decode(
            v,
            0, 'Subsistence Farming',
            1, 'Own Business',
            2, 'Wage / Salary',
            3, 'Old Age Pension',
            4, 'Cash Remittances',
            5, 'Retirement Income',
            6, 'Orphan Grant',
            7, 'Disability Grant',
            8, 'Other Income',
            ''
        )

        Push(max_txt, kodeer)
    }
}

return Concatenate(max_txt, TextFormatting.NewLine)&lt;/LI-CODE&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Hanlie&lt;/P&gt;</description>
      <pubDate>Mon, 12 Aug 2024 08:46:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/symbolise-by-maximum-value-field-s-name/m-p/1518195#M86756</guid>
      <dc:creator>HanliePetoors</dc:creator>
      <dc:date>2024-08-12T08:46:14Z</dc:date>
    </item>
    <item>
      <title>Re: Symbolise by maximum value field's name</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/symbolise-by-maximum-value-field-s-name/m-p/1518198#M86757</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/351335"&gt;@Bud&lt;/a&gt;&amp;nbsp;I'm working in a SQL Server Express SDE.&lt;/P&gt;&lt;P&gt;Below is an example of the data with the maximum values highlighted. For OBJECTID 1 and 3 I want to return the value 'Industry Agriculture Forestry Fisheries' and for OBJECTID 2 I want to return the value 'Industry Manufacturing'. Either as a label or a value that I can use for symbology.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="HanliePetoors_0-1723448817151.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/112112i42199ECA0F9EB948/image-size/medium?v=v2&amp;amp;px=400" role="button" title="HanliePetoors_0-1723448817151.png" alt="HanliePetoors_0-1723448817151.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The data is not all that dynamic, it being census data but I have about five of these groups of fields that I would like to handle like this.&lt;/P&gt;&lt;P&gt;I was thinking of a SQL view or a query layer but I can't figure out how to get the field name from the maximum value. This gives me the maximum value for one of these sets of fields (source of income) but this is where I get stuck and I thought perhaps there were other ways of doing it.&lt;/P&gt;&lt;LI-CODE lang="sql"&gt;select OBJECTID
	, (SELECT Max(v) 
		FROM (VALUES ([IncmSFrmng])
			, ([IncmOwnBsns])
			, ([IncmWgSlry])
			, ([IncmOldAgPnsn])
			, ([IncmCshRmtncs])
			, ([IncmRtrmntIncm])
			, ([IncmOrphnGrnt])
			, ([IncmDsbltyGrnt])
			, ([IncmOthr])							
		) AS value(v)) as [MaxIncmSrc]
from [ldr].[NAMIBIADEMOGRAPHICSPROVINCIAL2011]&lt;/LI-CODE&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Hanlie&lt;/P&gt;</description>
      <pubDate>Mon, 12 Aug 2024 08:23:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/symbolise-by-maximum-value-field-s-name/m-p/1518198#M86757</guid>
      <dc:creator>HanliePetoors</dc:creator>
      <dc:date>2024-08-12T08:23:53Z</dc:date>
    </item>
    <item>
      <title>Re: Symbolise by maximum value field's name</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/symbolise-by-maximum-value-field-s-name/m-p/1518275#M86770</link>
      <description>&lt;P&gt;What do you want to happen if there is a tie between two industries?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Aug 2024 11:06:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/symbolise-by-maximum-value-field-s-name/m-p/1518275#M86770</guid>
      <dc:creator>Bud</dc:creator>
      <dc:date>2024-08-12T11:06:02Z</dc:date>
    </item>
    <item>
      <title>Re: Symbolise by maximum value field's name</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/symbolise-by-maximum-value-field-s-name/m-p/1518277#M86771</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/351335"&gt;@Bud&lt;/a&gt;&amp;nbsp;the likelihood of that is extremely low but I suppose one can just select the first one found.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Hanlie&lt;/P&gt;</description>
      <pubDate>Mon, 12 Aug 2024 11:13:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/symbolise-by-maximum-value-field-s-name/m-p/1518277#M86771</guid>
      <dc:creator>HanliePetoors</dc:creator>
      <dc:date>2024-08-12T11:13:23Z</dc:date>
    </item>
    <item>
      <title>Re: Symbolise by maximum value field's name</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/symbolise-by-maximum-value-field-s-name/m-p/1518368#M86780</link>
      <description>&lt;P&gt;I normally work with Oracle, not SQL Server, but I was able to quickly mock up the SQL Server solution from this answer:&amp;nbsp;&lt;A href="https://stackoverflow.com/a/55471820/5576771" target="_self"&gt;Getting the column name that holds the maximum value of a row&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I did it&amp;nbsp;in &lt;A href="https://dbfiddle.uk/Pi7_qW6K" target="_self"&gt;db&amp;lt;&amp;gt;fiddle&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Bud_2-1723471126114.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/112137i9AF6E6262297F661/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Bud_2-1723471126114.png" alt="Bud_2-1723471126114.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;PRE&gt;with temp as (
   select objectid, industry, count
   from employment_by_industry
   unpivot
   (
     count
     for industry in (agr_forest_fish, mining_quarry, mfg, electric, water_sew)
   ) u
)
select distinct t1.objectid, t2.industry
from temp t1
cross apply (
    select top 1 objectid, industry
    from temp
    where t1.objectid = objectid
order by count desc) t2&lt;/PRE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Bud_3-1723471149356.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/112138iC4DB418B480DDD90/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Bud_3-1723471149356.png" alt="Bud_3-1723471149356.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Bud_1-1723470706866.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/112133iE9836EBF187775E5/image-size/large?v=v2&amp;amp;px=999" role="button" title="Bud_1-1723470706866.png" alt="Bud_1-1723470706866.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I don't know if that's the simplest solution or not.&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/458875"&gt;@AlfredBaldenweck&lt;/a&gt;,&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/1371"&gt;@JoshuaBixby&lt;/a&gt;, and&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/3521"&gt;@AJR&lt;/a&gt;&amp;nbsp;might find this interesting.&lt;/P&gt;</description>
      <pubDate>Mon, 12 Aug 2024 14:08:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/symbolise-by-maximum-value-field-s-name/m-p/1518368#M86780</guid>
      <dc:creator>Bud</dc:creator>
      <dc:date>2024-08-12T14:08:57Z</dc:date>
    </item>
    <item>
      <title>Re: Symbolise by maximum value field's name</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/symbolise-by-maximum-value-field-s-name/m-p/1518381#M86781</link>
      <description>&lt;P&gt;Idea:&amp;nbsp;&lt;A href="https://community.esri.com/t5/arcgis-pro-ideas/symbolize-using-the-field-name-that-has-the/idi-p/1518380/highlight/true" target="_self"&gt;Symbolize using the field name that has the maximum value&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Aug 2024 14:14:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/symbolise-by-maximum-value-field-s-name/m-p/1518381#M86781</guid>
      <dc:creator>Bud</dc:creator>
      <dc:date>2024-08-12T14:14:29Z</dc:date>
    </item>
    <item>
      <title>Re: Symbolise by maximum value field's name</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/symbolise-by-maximum-value-field-s-name/m-p/1518781#M86823</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/351335"&gt;@Bud&lt;/a&gt;&amp;nbsp;thanks this is a very elegant piece of SQL and a great solution.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Hanlie&lt;/P&gt;</description>
      <pubDate>Tue, 13 Aug 2024 06:40:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/symbolise-by-maximum-value-field-s-name/m-p/1518781#M86823</guid>
      <dc:creator>HanliePetoors</dc:creator>
      <dc:date>2024-08-13T06:40:24Z</dc:date>
    </item>
    <item>
      <title>Re: Symbolise by maximum value field's name</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/symbolise-by-maximum-value-field-s-name/m-p/1520566#M86912</link>
      <description>&lt;P&gt;Glad it helped.&lt;/P&gt;&lt;P&gt;For anyone interested, here's an &lt;STRONG&gt;Oracle&lt;/STRONG&gt; solution:&lt;/P&gt;&lt;PRE&gt;select objectid, max(col_name) keep (dense_rank first order by col_val desc) max_col_name
from employment_by_industry
unpivot (
  col_val
  for col_name in (
    agr_forest_fish, mining_quarry, mfg, electric, water_sew
  )
)
group by objectid&lt;/PRE&gt;&lt;P&gt;&lt;A href="https://dbfiddle.uk/DeaRoikf" target="_blank" rel="noopener"&gt;https://dbfiddle.uk/DeaRoikf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Source:&amp;nbsp;&lt;A href="https://forums.oracle.com/ords/apexds/post/idea-function-to-get-the-column-name-that-has-the-maximum-v-5088" target="_blank" rel="noopener"&gt;https://forums.oracle.com/ords/apexds/post/idea-function-to-get-the-column-name-that-has-the-maximum-v-5088&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Aug 2024 14:34:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/symbolise-by-maximum-value-field-s-name/m-p/1520566#M86912</guid>
      <dc:creator>Bud</dc:creator>
      <dc:date>2024-08-13T14:34:38Z</dc:date>
    </item>
    <item>
      <title>Re: Symbolise by maximum value field's name</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/symbolise-by-maximum-value-field-s-name/m-p/1547341#M89044</link>
      <description>&lt;P&gt;Related: &lt;A href="https://community.esri.com/t5/developers-questions/how-to-find-max-value-among-fields/m-p/12816/highlight/true#M92" target="_self"&gt;How to find Max value among Fields&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Oct 2024 20:40:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/symbolise-by-maximum-value-field-s-name/m-p/1547341#M89044</guid>
      <dc:creator>Bud</dc:creator>
      <dc:date>2024-10-09T20:40:19Z</dc:date>
    </item>
  </channel>
</rss>

