<?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: Labeling with Arcade Expression in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/labeling-with-arcade-expression/m-p/1558724#M90152</link>
    <description>&lt;P&gt;Yeah, you got the logic, but there are a lot of features with high values and i just want to label thoses.&lt;/P&gt;&lt;P&gt;I tested here but returned this following error:&lt;/P&gt;&lt;P&gt;Object not found $map&lt;/P&gt;&lt;P&gt;My map's name called Map, so i didn't know why didn't recognize.&lt;/P&gt;</description>
    <pubDate>Thu, 14 Nov 2024 16:48:45 GMT</pubDate>
    <dc:creator>ammsgis</dc:creator>
    <dc:date>2024-11-14T16:48:45Z</dc:date>
    <item>
      <title>Labeling with Arcade Expression</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/labeling-with-arcade-expression/m-p/1558585#M90134</link>
      <description>&lt;P&gt;Hi everyone, I would like to labeling just the fields with higher value then i used the expression above:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;IIf($feature.cota == Max($rel_curva_nivel_l.cota), $feature.cota, Null)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But returned the following error:&lt;/P&gt;&lt;P&gt;Object not found $rel_curva_nivel_l&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could someone give me some help? Thanks in advance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Nov 2024 14:01:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/labeling-with-arcade-expression/m-p/1558585#M90134</guid>
      <dc:creator>ammsgis</dc:creator>
      <dc:date>2024-11-14T14:01:01Z</dc:date>
    </item>
    <item>
      <title>Re: Labeling with Arcade Expression</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/labeling-with-arcade-expression/m-p/1558612#M90137</link>
      <description>&lt;PRE&gt;$rel_curva_nivel_l.cota&lt;/PRE&gt;&lt;P&gt;This doesn't look like a notation that Arcade would recognize. Where is this coming from?&lt;/P&gt;</description>
      <pubDate>Thu, 14 Nov 2024 14:27:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/labeling-with-arcade-expression/m-p/1558612#M90137</guid>
      <dc:creator>ZachBodenner</dc:creator>
      <dc:date>2024-11-14T14:27:37Z</dc:date>
    </item>
    <item>
      <title>Re: Labeling with Arcade Expression</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/labeling-with-arcade-expression/m-p/1558678#M90145</link>
      <description>&lt;P&gt;I tried to use instructions from Chatgpt.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Nov 2024 15:49:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/labeling-with-arcade-expression/m-p/1558678#M90145</guid>
      <dc:creator>ammsgis</dc:creator>
      <dc:date>2024-11-14T15:49:37Z</dc:date>
    </item>
    <item>
      <title>Re: Labeling with Arcade Expression</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/labeling-with-arcade-expression/m-p/1558684#M90148</link>
      <description>&lt;P&gt;This will probably change in the future, but ChatGPT got a lot of its training before there was a tremendous amount of documentation on Arcade. It's very very unreliable right now.&lt;/P&gt;&lt;P&gt;If I read your code correctly, you have a feature class where you want to compare two fields, "cote" and "rel_curva_nivel_l", and then make the label show whichever is the higher value?&lt;/P&gt;</description>
      <pubDate>Thu, 14 Nov 2024 16:00:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/labeling-with-arcade-expression/m-p/1558684#M90148</guid>
      <dc:creator>ZachBodenner</dc:creator>
      <dc:date>2024-11-14T16:00:45Z</dc:date>
    </item>
    <item>
      <title>Re: Labeling with Arcade Expression</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/labeling-with-arcade-expression/m-p/1558697#M90150</link>
      <description>&lt;P&gt;Actually the&amp;nbsp;&lt;SPAN&gt;rel_curva_nivel_ is a feature class where the field "cote" exists. My intention is the expression sees the higher value in this field and only labeling this value.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Nov 2024 16:23:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/labeling-with-arcade-expression/m-p/1558697#M90150</guid>
      <dc:creator>ammsgis</dc:creator>
      <dc:date>2024-11-14T16:23:21Z</dc:date>
    </item>
    <item>
      <title>Re: Labeling with Arcade Expression</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/labeling-with-arcade-expression/m-p/1558714#M90151</link>
      <description>&lt;P&gt;So there are multiple features in that feature class, but only the one with the highest value should be labeled? I think you might do something like this. I haven't tested this and the syntax will depend on if you're doing this in Pro, map viewer, etc. In this case, it's in a web map:&lt;/P&gt;&lt;LI-CODE lang="c"&gt;//get all the features in your dataset
var p = featuresetbyname($map,"rel_curva_nivel_l")

// initialize an individual feature's "cota"
var c = $feature.cota

// identify the maximum value of "cota' within the entire feature class
var n = Max(p.cota)

// If the feature's "cota" is the same as the largest, return it, otherwise null
IIf(c == n, c, Null)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Nov 2024 16:34:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/labeling-with-arcade-expression/m-p/1558714#M90151</guid>
      <dc:creator>ZachBodenner</dc:creator>
      <dc:date>2024-11-14T16:34:44Z</dc:date>
    </item>
    <item>
      <title>Re: Labeling with Arcade Expression</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/labeling-with-arcade-expression/m-p/1558724#M90152</link>
      <description>&lt;P&gt;Yeah, you got the logic, but there are a lot of features with high values and i just want to label thoses.&lt;/P&gt;&lt;P&gt;I tested here but returned this following error:&lt;/P&gt;&lt;P&gt;Object not found $map&lt;/P&gt;&lt;P&gt;My map's name called Map, so i didn't know why didn't recognize.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Nov 2024 16:48:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/labeling-with-arcade-expression/m-p/1558724#M90152</guid>
      <dc:creator>ammsgis</dc:creator>
      <dc:date>2024-11-14T16:48:45Z</dc:date>
    </item>
    <item>
      <title>Re: Labeling with Arcade Expression</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/labeling-with-arcade-expression/m-p/1558753#M90154</link>
      <description>&lt;P&gt;You must be working in Pro? If that's the case, you'd probably need to use the $datastore. Here's an example from an attribute rule of mine which&amp;nbsp;&lt;EM&gt;might&lt;/EM&gt; work in labeling. There's just so many different profiles for arcade that all behave a little differently, so you'll have to guess and check:&lt;/P&gt;&lt;LI-CODE lang="c"&gt;var trees = FeatureSetByName($datastore, "epgdb.PARKS.TreeInventory")&lt;/LI-CODE&gt;&lt;P&gt;so this is a feature class in an enterprise geodatabase called "epgdb" in the "PARKS" schema, feature class name TreeInventory. If your data is in a file geodatabase, I believe you can notate it with the just databaseName.featureclassName&lt;/P&gt;</description>
      <pubDate>Thu, 14 Nov 2024 17:32:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/labeling-with-arcade-expression/m-p/1558753#M90154</guid>
      <dc:creator>ZachBodenner</dc:creator>
      <dc:date>2024-11-14T17:32:01Z</dc:date>
    </item>
    <item>
      <title>Re: Labeling with Arcade Expression</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/labeling-with-arcade-expression/m-p/1558786#M90158</link>
      <description>&lt;P&gt;I really glad for your help but now return&amp;nbsp;&lt;SPAN&gt;Object not found $datastore kkk, i'll give up for while. In another moment i return to this.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Best Regards!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Nov 2024 18:17:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/labeling-with-arcade-expression/m-p/1558786#M90158</guid>
      <dc:creator>ammsgis</dc:creator>
      <dc:date>2024-11-14T18:17:01Z</dc:date>
    </item>
  </channel>
</rss>

