BuildAggregate
  • 1 Minute to read
  • Dark
    Light
  • PDF

BuildAggregate

  • Dark
    Light
  • PDF

Article summary

Creates a summary field by aggregating data from a foreign table onto a primary table.

KeyValue(s)Description
method"BuildAggregate"Creates a summary field by aggregating data from a foreign table onto a primary table.
project"#project#"
targetTable"tableName"required.  Table on which to create the field.
source"SourceTableName.SourceFieldName"Required. Full name of field to aggregate.
function"min/max/sum/count/avg"
  • min
  • max
  • sum
  • count
  • avg
name"FieldName"Required.
dataSet{}Optional.  If provided, source field will be filtered to include only records in the dataset.
overwritetrue/falseOptional.  Default = false
If true, existing field will be over-written.
If false and field exists, error will be raised.
forceLongtrue/false


{
  "method": "BuildAggregate",
  "project": "MyProject",
  "targetTable": "customer",
  "source": "transactions.profit",
  "overwrite": true,
  "name": "total profit",
  "function": "sum"
}


{
  "method": "BuildAggregate",
  "project": "#project#",
  "targetTable": "",
  "source": "",
  "function": "",
  "name": "",
  "dataSet": {},
  "overwrite": false,
  "forceLong": false
}



Was this article helpful?

What's Next