Skip to content
v2.274.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 ​

attributeAggregationFunctionoptionalIResolvable | CfnDashboard.AttributeAggregationFunctionPropertyattribute_aggregation_functionoptionaltyping.Union[IResolvable, AttributeAggregationFunctionProperty]attributeAggregationFunctionoptionalIResolvableAttributeAggregationFunctionoptionalIResolvableAttributeAggregationFunctionoptionalinterface{}#
Aggregation for attributes.
categoricalAggregationFunctionoptionalstringcategorical_aggregation_functionoptionalstrcategoricalAggregationFunctionoptionalStringCategoricalAggregationFunctionoptionalstringCategoricalAggregationFunctionoptional*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.
dateAggregationFunctionoptionalstringdate_aggregation_functionoptionalstrdateAggregationFunctionoptionalStringDateAggregationFunctionoptionalstringDateAggregationFunctionoptional*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.
numericalAggregationFunctionoptionalIResolvable | CfnDashboard.NumericalAggregationFunctionPropertynumerical_aggregation_functionoptionaltyping.Union[IResolvable, NumericalAggregationFunctionProperty]numericalAggregationFunctionoptionalIResolvableNumericalAggregationFunctionoptionalIResolvableNumericalAggregationFunctionoptionalinterface{}#
Aggregation for numerical values.