Solved

Importing calculations to Cognite Charts

  • 12 December 2023
  • 1 reply
  • 36 views

Badge

In Charts you can import your own calculations, but I can’t find any documentation regarding requirements to this end. It seems like the required format is a JSON file, but how should this JSON be set up. If anyone has any examples of imported calculations, sharing them would be very much appreciated.

Thank you.

icon

Best answer by Knut Vidvei 13 December 2023, 08:37

View original

1 reply

Userlevel 3
Badge

Hello, Vetle.

Thank you for a great question. The value of this functionality is that you can download calculations built in one chart and upload the same calculations for re-use in another chart.

This means you can quickly scale if you want to run the same calculations for different processes. Or to share best practices across teams, since you can share these files with co-workers.

Go to the Action button in the top right corner:

Actions … → Download Chart → Calculations

Tip; It’s a good idea to rename this file to reflect which calculations it contains. 

 

To upload go to the chart you want to import the calculations to → 

Blue (+) button → Import calculations → Select the JSON-file

 

Note that all calculations in a chart will be included when you download. Also, the source time series as input to the calculations is not included. This means you can add these from the dropdown in the “Source” nodes in the calculations in the new chart to run them with new data.

 

 

Best regards

Knut

Reply