ArcGIS Pro doesn’t label values as they appear in the table,
I couldn’t figure out why ArcGIS Pro doesn’t label values (attached) as they appear in the table.
What could be the issue here?
Are you using the Arcade label expression parser? Please see this help topic - Specify text for labels—ArcGIS Pro | ArcGIS Desktop
When using Arcade, field formatting on the layer will not be brought over to the labels. Arcade formatting methods will need to be used.
To bring across the field formatting you will either need to use the Arcade formatting methods, or use a different expression parser for your labels.
Jamal - so I think your numeric field is based upon a DOUBLE. What you see in the attribute table is numeric formatting of the DOUBLE but your label shows the unformatted number. What you can do is build an Arcade expression such as:
round(number($feature.Percet_WestBank * 100), 2) + "%"
to get something like this:
This works fine in ArcMap.
Having the “type” to be “double” and “category” as “percentage” works perfectly without the need to write any code. Simple. The data is attached
Arcade doesn't exist in Arcmap. Your labels will be using vbscript, jscript or python in your ArcMap project. You can use those parsers in Pro as well - you just need to change it on the Label Class pane. Arcade works differently than the other parsers which is why you would need to use the expression Robert provided.
Take a look through the help topic I sent in the previous message for more information.
Hi Jamal NUMAN ,
In addition to the links that Wendy Harrison provided, I would like to share this great blog by Kelly Gerrow:
Conditional Field display with Arcade in Pop Ups
I have created some documents on Arcade too, and although the one below is for ArcGIS Online, it helps to understand what you are able to do with Arcade: Create pop-ups in ArcGIS Online with conditional images using Arcade
ArcGIS Arcade | ArcGIS for Developers allows you to do things that are not possible with ArcMap. I understand that you are searching for a way to simply show the labels based on the format defined for a field in the attribute table and you can log an enhancement request, but it is also important to look beyond the possibilities that ArcMap offers and understand the potential of Arcade in ArcGIS Pro and ArcGIS Online (and soon available in many other parts of the platform).
Retrieving data ...