Calculate Transform
Edit this pageThe formula transform extends data objects with new fields (columns) according to an expression.
// Any View Specification
{
...
"transform": [
{"calculate": ..., "as" ...} // Calculate Transform
...
],
...
}
Property | Type | Description |
---|---|---|
calculate | String |
Required. A expression string. Use the variable |
as | String |
Required. The field for storing the computed formula value. |
Example
This example uses calculate
to derive a new field, and then filter
s the data based on the new field.