Expressions
Aggregation
3min
use jsonata aggregation to return the results of values to find a maximum, minimum, or average value in an array configuration result expression maximum =$max(@ctx datasources mydata array) minimum =$min(@ctx datasources mydata array) sum =$sum(@ctx datasources mydata array) be careful when using complex expressions, such as expressions that iterate one datasource across another, as your solution performance could become slower to avoid this, try to use the datasource queries to get the desired result rather than an expression examples and code snippets examples and code snippets in this example static data is agregated in a component enity to show the result in the entity field see the full example code sample in github expression jigx datasources mydata type datasource static options data \ name jane stevens title doctor email jane\@first com number 0 64734 number2 12 color blue time '2021 11 07t15 07 54 972z' array \[5,1,2,3,7,9] children \ type component entity options children \ type component entity field options label max value =$max(@ctx datasources mydata array) \ type component entity field options label min value =$min(@ctx datasources mydata array) \ type component entity field options label sum value =$sum(@ctx datasources mydata array)