For calculated metrics, no data needs to be imported, only the formula. The data will then be calculated using the dependents (or children) and the formula.
From ‘Import’, the field details can be viewed again, and an example CSV can be downloaded.
The upload CSV needs to have an ID, name, Custom Algorithm, Child1 etc.
Custom Algorithm needs the name of the dependents in brackets and the operation symbols: addition, subtraction, multiplication, division and brackets each separated by a space.
Dependents can only be referenced by name, which is why they need unique names.
If a calculated metric formula is uploaded for a calculated metric which already exists, it will be overwritten. Blank fields will result in removing the calculation formula from the metric. If the name is used instead of ID, a new metric will be created with the same name.