AGGREGATE
Returns the aggregated result of a measure over the specified time period.
Syntax
AGGREGATE(measure, startDate, endDate, aggregationType)Arguments
Return value
Example
AGGREGATE([Profit], SHIFT(CURRENT_PERIOD, "-1M"), SHIFT(CURRENT_PERIOD, "-3M"), "MIN")
//Calculates the minimum of the profit in the past 3 months
AGGREGATE([Sales], DATE(2024,4,1), DATE(2024,8,31), "MEDIAN")
//Calculates the median of sales between April 2024 and August 2024
Last updated
Was this helpful?