Select to view content in your preferred language

Dynamic Label of a Calculated Field

114
1
Monday
Alex_Arr
New Contributor

Hello,

I am looking to produce a map that dynamically displays calculated fields. The following fictional example represents what I am trying to achieve, where each row is a postal code, the columns show the number of people in each occupation for that postal code, and the calculated fields return the top three occupations in that postal code (the name of the column, not the number):

Postal CodeChefFarmerDoctorTeacherSailorEngineerMost CommonSecond Most C.Third Most C.
A0A B1B0318202SailorTeacherFarmer
A0A B1C2319414258SailorChefFarmer
A0A B1D623184312FarmerDoctorEngineer
A0A C1A355316417ChefEngineerTeacher
A0A C1B104561211FarmerTeacherChef
A0A C1C1331820326SailorFarmerChef

 

If I zoom into the map, I should be able to see the label I created showing the three calculated fields, demonstrating the top three occupations in each postal code. If I zoom out further, I want the postal codes to merge together, and display new calculated values that represent the 'new grouped areas' as represented in the table below:

Postal CodeChefFarmerDoctorTeacherSailorEngineerMost CommonSecond Most C.Third Most C.
A0A B**294523264822SailorFarmerChef
A0A C**588117483724FarmerChefTeacher

 

How do I achieve this dynamic label? How should I setup the calculated field to make this possible?

Thanks,

Alex

0 Kudos
1 Reply
Robert_LeClair
Esri Esteemed Contributor

Perhaps the easiest way to do this is to have 2 layers in the Map View.  The first layer is the one with all the zipcode polygons.  The second layer in the Map View is the merged A0AB** polygons and the A0AC** polygons layer.  Using scale dependecies for each layer - help documentation here - the first layer visibility turns on at say 1:12000 and lower (1:1000 for example) while the second layer turns off.  When the user zooms out beyond 1:12000, the first layer turns off and the second layer turns on.  You can set the label for each layer to display those fields of interest.  Let me know if you have additional questions and I'd be happy to assist.