How to get average of marks(subject wise)

Problem: I’m trying to get average of math_marks(column)
Through group by I have done it but it is repeated in each rows. kindly see snapshot
I want average of MATH marks below the column

.

Hi Shubham,

We request you to kindly use block step. You can pass the Average Sum of last row.

If you need and require result of last row then please use block step and then you will get last row.

can we you describe in details? Because I could not understood how to use block step