Operation on metric obtained in EF2 extensions

For that data source you can’t do anything in the data source (with SQL you can handle it by adjusting your query). You’d have to handle it in the metric metadata section, such as this:

metrics:
  - key: my_old_metric
    metadata:
      displayName: My Old Metric
      description: My Old metric, it is large
      unit: Count
  - key: func:my_new_metric
    metadata:
      displayName: My New Metric
      description: My Old metric, but divided by 100
      unit: Count
    query:
      metricSelector: (my_old_metric)/(100)