Oh, interesting. Yeah, you could try that.
distinct(
fs,
{name: 'some-field', expression: 'LEFT(some-field, 10)'}
)
Whether or not "LEFT" works depends on the underlying database. You can try SUBSTRING, too.
https://doc.arcgis.com/en/arcgis-online/reference/sql-agol.htm
LEFT isn't in the list, but that list isn't comprehensive. If the function is available in your RDBMS, you should be able to use it in Arcade.
- Josh Carlson
Kendall County GIS