Expressions

Creating custom calculated fields

In addition to predefined fields, you can create custom calculated fields using the expression option. This allows you to define new fields based on existing ones, without modifying the original dataset.

fields:
  - name: followers_per_popularity_point
    label: Followers Per Popularity
    type: number
    expression: followers/popularity
    aggregates: [sum, avg, min, max, median, null]

Custom calculated fields look no different to predefined fields in the canvas UI.

Last updated