Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagegroovy
def groupByData = api.newMatrix()
             //Definition of result matrix (columns, rows).
             .withColumns('TextColumn1', 'TextColumn2', 'NumericColumn3', 'NumericColumn4')
             .withRows(entries)
             // Definition of result matrix (columns, rows).
             .withGroupBy(['TextColumn1', 'NumericColumn3'])
             .withColumnAggregation('NumericColumn3', SUM)
             .calculateGroupByData()

...