Filter transactions by year and month