TomBorcoman
Technical User
Hello, I have a table that looks like this:
NAME DATE HOURS
Smith 2/4/2004 4
Smith 2/9/2004 2
Smith 5/8/2004 1
Smith 7/1/2004 1
Smith 11/5/2004 5
Johnson 1/2/2003 2
Johnson 4/1/2003 1
Johnson 5/12/2003 6
What I'd like to do is have a running subtotal that is dependent upon a 90 day window where dates would be eliminated...that is, keep a running subtotal of the hours but when 90 days are elapsed, do not include a record...
So, this would be the desired output:
NAME DATE HOURS SUBTOTAL
Smith 2/4/2004 4 4
Smith 2/9/2004 2 6
Smith 5/8/2004 1 3
Smith 7/1/2004 1 4
Smith 11/5/2004 5 5
Johnson 1/2/2003 2 2
Johnson 4/1/2003 1 3
Johnson 5/12/2003 6 7
Most if not all date functions that I've reviewed simply look at the previous record and not all preceding records with each iteration. Thanks for looking...
NAME DATE HOURS
Smith 2/4/2004 4
Smith 2/9/2004 2
Smith 5/8/2004 1
Smith 7/1/2004 1
Smith 11/5/2004 5
Johnson 1/2/2003 2
Johnson 4/1/2003 1
Johnson 5/12/2003 6
What I'd like to do is have a running subtotal that is dependent upon a 90 day window where dates would be eliminated...that is, keep a running subtotal of the hours but when 90 days are elapsed, do not include a record...
So, this would be the desired output:
NAME DATE HOURS SUBTOTAL
Smith 2/4/2004 4 4
Smith 2/9/2004 2 6
Smith 5/8/2004 1 3
Smith 7/1/2004 1 4
Smith 11/5/2004 5 5
Johnson 1/2/2003 2 2
Johnson 4/1/2003 1 3
Johnson 5/12/2003 6 7
Most if not all date functions that I've reviewed simply look at the previous record and not all preceding records with each iteration. Thanks for looking...