Using this the expression for each month could be: Sum({$<MonthDiff={"<3"}>} Sales)/3
Another possible solution could be creating a new table(fields in data model to store the accumulated value of the last 3 months for customer/product... this could take more work.