U need to do coding in the Sub-total line also...... it is a separate line........... Define your totals there.
Code: 0022 : Set : SelDisTotal3 :($$CollAmtTotal:SelectedPendingBills:$OpeningBalance) - ##SelDisTotal2