Changing field aggregation

You may find it useful to change the basic fields defaults in your dataset.

The following steps demonstrate how to change the default aggregation function from Sum to Average for the field

life_expectancy in the dataset World Life Expectancy [data source: samples.world_life_expectancy].
  1. On the main navigation bar, click Data.
    Click DATA on main nav

    The Data view appears, open on the Datasets tab.

    Main landing page of DATA
  2. In the left navigation menu, click samples.
  3. In the Datasets area, select World Life Expectancy (samples.world_life_expectancy).
  4. In the Dataset Detail menu, select Fields.
  5. In the Fields interface, select Edit Field.
  6. Under Measures, find the field life_expectancy and click the (down arrow)icon on its right side.
  7. From the menu, select Edit Fields.

    The Edit Field Parameters window modal appears.

  8. Change Default Aggregation from Sum to Average, and click Apply.

    The Edit Field Parameters window modal appears.

  9. Change Default Aggregation from Sum to Average, and click Apply.
  10. Under Dataset: World Life Expectancy, click Save.

    As a result of this change, all new visuals created from this dataset will automatically use the new aggregation.

  11. On the left navigation, under Measures, pick up the field life_expectancy, and drag it to the Measures shelf.

    The field appears as avg(life_expectancy).