aws-cdk-lib.aws_quicksight.CfnAnalysis.AggregationFunctionProperty

interface AggregationFunctionProperty

LanguageType name
.NETAmazon.CDK.AWS.QuickSight.CfnAnalysis.AggregationFunctionProperty
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsquicksight#CfnAnalysis_AggregationFunctionProperty
Javasoftware.amazon.awscdk.services.quicksight.CfnAnalysis.AggregationFunctionProperty
Pythonaws_cdk.aws_quicksight.CfnAnalysis.AggregationFunctionProperty
TypeScript aws-cdk-lib » aws_quicksight » CfnAnalysis » AggregationFunctionProperty

An aggregation function aggregates values from a dimension or measure.

This is a union type structure. For this structure to be valid, only one of the attributes can be defined.

Example

// 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 aggregationFunctionProperty: quicksight.CfnAnalysis.AggregationFunctionProperty = {
  categoricalAggregationFunction: 'categoricalAggregationFunction',
  dateAggregationFunction: 'dateAggregationFunction',
  numericalAggregationFunction: {
    percentileAggregation: {
      percentileValue: 123,
    },
    simpleNumericalAggregation: 'simpleNumericalAggregation',
  },
};

Properties

NameTypeDescription
categoricalAggregationFunction?stringAggregation for categorical values.
dateAggregationFunction?stringAggregation for date values.
numericalAggregationFunction?IResolvable | NumericalAggregationFunctionPropertyAggregation for numerical values.

categoricalAggregationFunction?

Type: string (optional)

Aggregation for categorical values.

  • COUNT : Aggregate by the total number of values, including duplicates.
  • DISTINCT_COUNT : Aggregate by the total number of distinct values.

dateAggregationFunction?

Type: string (optional)

Aggregation for date values.

  • COUNT : Aggregate by the total number of values, including duplicates.
  • DISTINCT_COUNT : Aggregate by the total number of distinct values.
  • MIN : Select the smallest date value.
  • MAX : Select the largest date value.

numericalAggregationFunction?

Type: IResolvable | NumericalAggregationFunctionProperty (optional)

Aggregation for numerical values.