FILTER
Filters measure values across a period based on specified conditions.
Last updated
Was this helpful?
Filters measure values across a period based on specified conditions.
The FILTER formula filters measure values across a period range and returns only those values that meet the specified conditions. You need to combine the FILTER function with an aggregation function like SUM/AVG, etc. to get the required results.
FILTER(measure, periodRange, condition1, [condition2],...)measure – The measure to be filtered. Required.
periodRange – A period range array returned by the PERIOD_RANGE function. Required.
condition1, [condition2], ... - Condition(s) that are used to check and filter (filter criteria). To refer to the current value, use the keyword THIS. Required.
Returns a range of measure values that satisfy the specified condition(s).
FILTER([Sales], PERIOD_RANGE(DATE(2023,1,1),DATE(2023,12,31),THIS>1000)
//Returns the sales values for the year 2023 that are greater than 1000In the sales report below, we combined the FILTER function with SUM to aggregate only the cells that meet a specific condition (>1000). We only sum up sales when they exceed 1000.
In the Envelopes row the sales for Q1 and Q4 meet the condition; those two cell values are returned by the FILTER function and added together.
The FILTER measure is blank for the Fasteners row because none of the cells have sales greater than 1000.

Last updated
Was this helpful?
Was this helpful?