Hi there. I am using Arcade to create custom labels for multiple vector layers including name fields and value fields. Typically, I format the value fields in the attribute table to display percentages rounded to 1 decimal and padded with zeros. When I use Arcade to format label expressions, however, it is omitting these settings from the fields. I can manually round and format (as seen below), but I am not sure how to manually pad with zeros within my label expression. I need the whole numbers like 25% to show up as 25.0%.
"""
"<BOL>" + $feature['Regions_base.Name'] + "</BOL>" + TextFormatting.NewLine + Text(Round($feature['Regions_Employment$.change_Feb_Aug'] * 100, 1), "##.#")+ "%"
Thanks to anyone who has any ideas!
Solved! Go to Solution.
In the Text function, use "0" intead of "#" when you need to maintain either leading or trailing zeros.
Text(Round($feature['Regions_Employment$.change_Feb_Aug'] * 100, 1), "##.0")+ "%"
In the Text function, use "0" intead of "#" when you need to maintain either leading or trailing zeros.
Text(Round($feature['Regions_Employment$.change_Feb_Aug'] * 100, 1), "##.0")+ "%"
Amazing! Thanks so much!