In the detail section put a formula with 2 global variables and assign the field itself to the first variable and the previous(field) to the second one. Now, in any other formula that you place above the first one, the first global variable will keep the previous value, while the second global one -- previous to that.