You can use a string calculation in a dimension expression, like mid(Name,1,1). It would definitely more useful if you performed this calculation to create a new field in the load script. You can't use a function as the field in set analysis or as the field in an aggr function aggr(sum(value), field) or Total <field>, so definitely better to create in the load script if possible.