Category, Amount, Date). We want to calculate the sum of operations for each category for each year. To do this, we need to group records by Date and Category, while rounding the Date of each record to the year, and summing the values in the Amount column.@valuedateStart(@value, @Year(interval))SumDate, we used an operation from system variables. This way, all records within the same year and category will fall into the same group.