# AggregationProperty

Defines an aggregation function to be applied to grouped data, creating a new column with the calculated result.

- Source: Generated code
- Type last changed: v2.224.0 · 13 Nov 2025

## Example

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_quicksight as quicksight } from 'aws-cdk-lib';
const aggregationProperty: quicksight.CfnDataSet.AggregationProperty = {
  aggregationFunction: {
    listAggregation: {
      distinct: false,
      separator: 'separator',

      // the properties below are optional
      inputColumnName: 'inputColumnName',
    },
    percentileAggregation: {
      percentileValue: 123,

      // the properties below are optional
      inputColumnName: 'inputColumnName',
    },
    simpleAggregation: {
      functionType: 'functionType',

      // the properties below are optional
      inputColumnName: 'inputColumnName',
    },
  },
  newColumnId: 'newColumnId',
  newColumnName: 'newColumnName',
};
```

## Properties

- `aggregationFunction`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnDataSet.DataPrepAggregationFunctionProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_quicksight.CfnDataSet.DataPrepAggregationFunctionProperty.html) (required) — The aggregation function to apply, such as `SUM` , `COUNT` , `AVERAGE` , `MIN` , `MAX`.

- `newColumnId`: string (required) — A unique identifier for the new column that will contain the aggregated values.

- `newColumnName`: string (required) — The name for the new column that will contain the aggregated values.
