Skip to content
v2.273.0

AggregationFunctionProperty Struct ​

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 ​

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

Properties ​

attributeAggregationFunctionIResolvable | CfnDashboard.AttributeAggregationFunctionPropertyattribute_aggregation_functiontyping.Union[IResolvable, AttributeAggregationFunctionProperty]attributeAggregationFunctionIResolvableAttributeAggregationFunctionIResolvableAttributeAggregationFunctioninterface{}#
Aggregation for attributes.
categoricalAggregationFunctionstringcategorical_aggregation_functionstrcategoricalAggregationFunctionStringCategoricalAggregationFunctionstringCategoricalAggregationFunction*string#
Aggregation for categorical values.
  • COUNT : Aggregate by the total number of values, including duplicates.
  • DISTINCT_COUNT : Aggregate by the total number of distinct values.
dateAggregationFunctionstringdate_aggregation_functionstrdateAggregationFunctionStringDateAggregationFunctionstringDateAggregationFunction*string#
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.
numericalAggregationFunctionIResolvable | CfnDashboard.NumericalAggregationFunctionPropertynumerical_aggregation_functiontyping.Union[IResolvable, NumericalAggregationFunctionProperty]numericalAggregationFunctionIResolvableNumericalAggregationFunctionIResolvableNumericalAggregationFunctioninterface{}#
Aggregation for numerical values.