How to show features count and not the value as a label in ArcMap10.2?
I have a polygon layer which contains 100 or so features. All the features are grouped by a group_name
field containing values like "Forest", "Park", "Factory", etc.
I want to show the number of records present under a group. Suppose two features contains "Park", four features contain "Forest" in the group_name
, so the label should be 2 on those features which contain "Park" and 4 on those features which contains "Forest".
EDIT:
The approach should be dynamic, so that, if some feature added/deleted then layer must reflect the difference. Like, if someone add an other feature and added a group_name
= "Park" (in Attribute Table). Then the label should be automatically show 3 on map. I'm not concerned with TOC as such because I want to set the label expression and then I will publish it. The application users can add or delete the feature and they want to see the number of records as feature's label.