Calculations JSON import

Export and import private calculations from the Calculations page.

[
  {
    "name": "My metric",
    "description": "optional",
    "sourceCode": "function calculate(params) { return [0]; }",
    "valueFormat": "number",
    "enabled": true,
    "sortOrder": 0
  }
]

valueFormat is one of number, currency, percentage, ratio, string. Import respects your plan ownership limit.

Back to calculations docs