AGGREGATE
Syntax
MOVINGAVERAGE(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 and August 2024
Was this helpful?