get the sql right for displaying interim balances for each group
only count split parts in interim sums