Arcade function to trim before "_" and show unique values (remove duplicate values)

459
0
01-30-2023 03:18 AM
Labels (1)
PSGeo1
by
New Contributor III

Hi there!,

I am using arcgis online and trying to label and filter out duplicate names.

My plan is to use the split to trim the labels from "AS7634_Lisbon" to "Lisbon"

Trim(Split(DomainName($feature, 'name'), '_')[-1])  - It worked like a charm!!

but I don't know how to combine this with the:

Distinct($feature.'name')

 

cheers,

PSGEO

 

0 Kudos
0 Replies