I'm trying to create an arcade expression to return all the characters before a dash. The field contains these values:
PE - Polyethylene
STL - Steel
AA - DuPont Aladyl-A
TR-418
I thought that this arcade code would help to label the line feature:
Trim(Left(DomainName($feature, 'MATERIAL'),3))
It help solve the issue with the steel, but this was no help since the TR-418 does not have a space between the R and dash, and it return "TR-".
Any ideas now how I can create this arcade code to label the line without the dash.
Solved! Go to Solution.
It worked, thank you so much.