I have the following data set
I want to run a sub total row for each year's transactions:
here's how the data looks :

this is the desired output:

one last remark, I want the expression to be dynamic not just a reference for those 2 specific years
and note every 4 rows repeat for each year
any thoughts ??