Skip to content
< Back to FAQ overview

How can I use calculations in my dashboards?

The Time Series Data Service offers several options for processing incoming values. It is important to note that the calculations must be adjusted in each widget.

Show simple calculation with a static value

Show multiple metric calculation

Show cumulative sum calculation

How can I calculate my incoming values with a static value (multiply, divide, sum, subtract)?

With the “Math” function in the Time Series Data Service, static values can be easily inserted into queries for calculation.

  1. Open the widget in which you want to use a static value for the calculation
  2. In the query view, navigate to the “SELECT” line and click on the “+” at the end of the line
  3. Select the “math” option here under “math”
  4. A function is now added to the “SELECT” line. You can use simple calculations here.

How can I use two or more incoming metrics to create a new metric (e.g. multiply, divide, sum, subtract)?

With the “Transform” function in the Time Series Data Service, different metrics can be calculated together to create a new metric for a widget. Please note, that the transform option is not available for all visualization options.

  1. Open the widget in which you want to calculate a new metric
  2. Switch to the “Transform” tab
  3. Select the “Add field from calculation” transformation
  4. Decide if you want to calculate based on a predefined option (Total, mean, max, min …) or simply select “Binary option”
  5. Select the queries you want to use and the calculation option
  6. Rename the new metric and optionally hide the “source metrics”

How can I add up the values of a day?

With the “cumulative_sum” function within a query, all values in a period can be added up to calculate a total value for this period.

  1. Open the widget in which you want to calculate the cumulative sum of a specific timerange
  2. In the query view, navigate to the “SELECT” line and click on the “+” at the end of the line
  3. Select the “cumulative_sum” option here under “Transformation”
  4. Change the timerange to the specific time range you need