6.10 Filter by group’s aggregation value

 

We have an Excel table for the daily sales of products:

imagepng

We want to find out the date when the total daily sales amount exceeds 300,000:

=spl("=E(?1).groups(OrderDate;sum(Sales):TotalSales).select(TotalSales>300000)",A1:C2401)

imagepng