I’m not sure if you have the year column in your transactions sheet as well as month but adding that column will give you the additional options to group/ filter by and see things differently in your pivot tables
Check out this thread for additional info in bringing those columns to life with formulas