You will not be abble to perform this action like this…

But it is doable thru the **LIST NUMBERS** element (You will find it in the Toolbox plugin).

With this element you will be able to create a second RG based in a Math operation . So, if you want a second RG based in your first RG grouped by 5, you can create a List of Numbers with 20 itens with something like:

`First RG'List:count / 5`

This will generate a second list with 20 itens. Indexes from #1 to #20. Like you wanted.

After this, you will have to play with the index number of each item in you second RG to be able to do the Math (always looking at the values in your first RG).

Here is your formula base formula:

(((Cell’s index - 1) * 5) + 1) to (Cell’s index * 5)

**Index 1:**

(((Cell’s index - 1) * 5) + 1) to (Cell’s index * 5)

(((1 - 1) * 5) + 1) to (1 * 5)

1 to 5

**Index 2:**

(((Cell’s index - 1) * 5) + 1) to (Cell’s index * 5)

(((2 - 1) * 5) + 1) to (2 * 5)

6 to 10

**Index 3:**

(((Cell’s index - 1) * 5) + 1) to (Cell’s index * 5)

(((3 - 1) * 5) + 1) to (3 * 5)

11 to 15

… and so on…

Use the **Search For** to find the data in you fist RG.

Use the command `:itens from #`

and `:itens untill #`

to GET exatly the rows you need in your first RG.

And in the end, use the` :Group by`

and the aggregation “**Average**” to perform the Math!