Use the measure:
Cumulative_Loss = CALCULATE ( [TotalLossPerAcct], WINDOW ( 1, ABS, 0, REL, ALL ( MyTable[TP] ) ) )