Concept Flow - FILTER clause for conditional aggregation
Start Query
GROUP BY rows
Apply aggregate functions
Check FILTER condition for each aggregate
Include row
Calculate aggregate result
Return grouped results
The query groups rows, then for each aggregate function, it includes only rows that meet the FILTER condition before calculating the aggregate.