Itential vendor logo

Vendor

Itential

Product

Itential Automation Platform

Project Type

Transformation Project


View Repository
Transformation

Aggregate Functions For Arrays

Overview

This JST allows IAP users to pass in an array of numbers and run a set of mathematical aggregate functions on the items. Users can also use this JST on the aggregated arrays returned by the GroupBy Property pre-built. The aggregate functions supported are:

No.Function
1Sum
2Product
3Maximum
4Minimum
5Range
6Count
7Arithmetic Mean
8Geometric Mean
9Harmonic Mean
10Median
11Mode
12Standard Deviation
13Variance

The JST expects all the items in the array to be either numbers or parsable number strings (which will be converted to numbers); however, if there is a non-number/non-parsable string item, the item will simply be ignored from all calculations and returned as part of the valuesIgnored array. Values which are used in calculations will be returned in the valuesUsed array in their original forms (as strings/numbers) and in the valuesUsed-converted array in their converted forms (all numbers).

How to Install

To install the pre-built:

  • Verify you are running a supported version of the Itential Automation Platform (IAP) as listed above in the Prerequisites section.
  • The pre-built can be installed from within App-Admin_Essential. Simply search for the name of your desired pre-built and click the install button.