I've done something similar but not in a pretty way.
You could try making a new metric and have the formula as =TimePeriod(LookupObjectUnitValue(Cost),-12)+TimePeriod(LookupObjectUnitValue(Cost),-11)+...
This would give you 12 months ago, plus 11 months ago etc. until you get down to last month, then add LookupObjectUnitValue(Cost).
I've done this with just 'Cost' before but I think t would work with the lookupobject as well.
Hope this helps