11.3 Group by expression

 

Here below is a data table:

imagepng

We want to group and aggregate by the first two digits of ID, and calculate the total sales of each group:

=spl("=E(?1).groups(left(ID,2):ID;sum(Sales):Sales)",A1:C25)

imagepng


esProc Desktop and Excel Processing
11.2 Group by combination of multiple columns
11.4 Group by segment