OK, I think I see what I've not been telling you.
Each record in the source table represents a payment made to a particular porfolio, and there are multiple records per month, per portfolio. So, each record in the source has: portfolio name, payment, date, sytemmonth, systemyear.
For each...