FlexPrice supports the following aggregation types:
AggregationDescriptionTranscription
COUNTCounts event occurrences for basic usage trackingCOUNT(DISTINCT events.id)
SUMAggregates numeric property values across eventsSUM(events.properties.property_name)
COUNT UNIQUETracks distinct property values for unique metricsCOUNT_DISTINCT(events.properties.property_name)
LATESTCaptures the most recent property value by timestampargMax(events.properties.property_name, timestamp)
SUM WITH MULTIPLIERApplies configurable rate multipliers to summed valuesSUM(events.properties.property_name) * multiplier
MAXIdentifies peak values with optional bucketing supportMAX(events.properties.property_name)
WEIGHTED SUMTime-proportional aggregation for capacity-based billingWeighted calculation based on event duration
All aggregation types except COUNT operate on event properties. The result of this aggregation will be used to calculate charges.

Next Steps