lets start from the beginning
place your fields in the details section
create a group for machine id
it should group all the details records by that id
create a formula by machine id
min(date) and max(date)
place them in the details.
this should just display the min date and max date (if there are other dates this formula should be blank)
this is just for testing purposes: create a formula
if date(thats in the detail section) =min date then 1
if date(thats in the detail section) =max date then 2
it should flag the records you want to see
then go to the record supression and conditionally surpress the
not(flag formula ) in (1,2)
(you cant group by a min or max formula)
if that displays your correct information then
create 2 formula that states
if flag =1 then meter amt
if flag =2 then meter amt
this should grab the meter value at the min max date
if this is all working so far( i hope so)
then create a final formula
amt1-amt2 or vice verse
hope this helps.