In this example, the tAggregateRow component, labeled
aggregate, will perform
sum, avg,
max, and min calculations
to get the total, average, highest, and lowest scores of each
subject.
setSettings {
GROUPBYS {
OUTPUT_COLUMN : "subject",
INPUT_COLUMN : "subject"
},
OPERATIONS {
OUTPUT_COLUMN : "sum",
FUNCTION : "sum",
INPUT_COLUMN : "score",
OUTPUT_COLUMN : "average",
FUNCTION : "avg",
INPUT_COLUMN : "score",
OUTPUT_COLUMN : "max",
FUNCTION : "max",
INPUT_COLUMN : "score",
OUTPUT_COLUMN : "min",
FUNCTION : "min",
INPUT_COLUMN : "score"
},
LABEL : "aggregate"
}