Select to view content in your preferred language

ArcGIS Pro 2.5: How to label features based on two fields with each label on a separate line?

12360
13
Jump to solution
02-28-2020 10:50 AM
JamalNUMAN
Legendary Contributor

ArcGIS Pro 2.5: How to label features based on two fields?

 

For example, in ArcMap features can be labeled based on two fields such that labels can aligned vertically by using the expression below:

 

[Male]  & vbnewline & [Female]

 

How this can be performed in Pro?

 

----------------------------------------
Jamal Numan
Geomolg Geoportal for Spatial Information
Ramallah, West Bank, Palestine
13 Replies
HamedFarzin
Esri Contributor

Resources for labels in ArcGIS Pro:

Specify text for labels—ArcGIS Pro | Documentation 

KoryKramer
Esri Community Moderator

Jamal NUMAN‌ please remember to close out your question by marking what you think is the best answer as Correct. (This goes for any of open questions...) This will help other community members find solutions more quickly.  Thanks!

JamalNUMAN
Legendary Contributor

With the vbscript language option, the Pro does take the table number formats to the label as it is used to work in ArcMap.

----------------------------------------
Jamal Numan
Geomolg Geoportal for Spatial Information
Ramallah, West Bank, Palestine
JamalNUMAN
Legendary Contributor

Example:

Text($feature.Density, '#.###') + TextFormatting.NewLine + $feature.EACode

 

Clip_1175.jpg

----------------------------------------
Jamal Numan
Geomolg Geoportal for Spatial Information
Ramallah, West Bank, Palestine
0 Kudos