I think this can be solved using maximum but I'm not exactly sure how. I have date and amount fields and I want the latest (most recent) amount greater than 0.
01/12/2002 1000
07/20/2002 1500
08/01/2002 0
12/05/2002 3000
01/01/2003 0
The amount I want to display is 3000 on 12/05/2002.
01/12/2002 1000
07/20/2002 1500
08/01/2002 0
12/05/2002 3000
01/01/2003 0
The amount I want to display is 3000 on 12/05/2002.