Transaction-Based Bar Aggregation - Coding problem | OneNoughtOne