COMPUTE THE SUM OF ALL THE VALUES IN THE KEYVALUE

Computes the arithmetic sum of all numeric values stored in a key-value map. Use this worker whenever you need a single scalar total from a flat key-value collection inside a workflow.

When to use

Classification: process.

Tagged: aggregation, keyvalue, scalar, sum, transform.

Inputs

Label ID Type Default Required Description
Keyvalue 1 kv1 keyvalue   Input key-value map whose numeric values will be summed; all values must be numeric (or castable to numeric) — leave empty/optional if no map is available and the worker will return zero.

Outputs

Label ID Type Description
keyvalue_value_sum_output_1 keyvalue_value_sum_output_1 scalar Scalar total equal to the arithmetic sum of all values in the input key-value map; dimensionless and unitless unless the source values carry implicit units.

Disciplines

  • data.dataset.transform
  • data.statistics

Runnable example

A runnable example is registered for this worker. Open the example workflow on the d3VIEW canvas: /api/workflow/example?id=keyvalue_value_sum


Auto-generated from transformation schema. Worker id: keyvalue_value_sum. Schema hash: 4f85192c8df9. Hand-curated docs in workerexamples/ override this page when present.