Intermmediate commit before I fix the join with the category
Adding group by scope with category for transactions correctly