Please find a possible solution to your request. To achieve it, I have created a column with the “floor” of the row index when divided by 4, which then can be used to group the rows with same “floor” value and aggregate the sales by their sum: