KristieLee1
Technical User
I am attempting to calculate the average daily balance (for gallons). I can get this to work by using the running total function (to sum the gallons by day) and dividing the running total by the number of days elapsed in the month to get the average daily balance(runningtotal/#of elapsed days in month).
This works, and gives me the correct information for every day. However, I just need the average daily balance based on today.
Lets say I've sold 186k gallons in 10 days. I don't want to see each day displayed, I just want to see one row that shows the average daily balance for all 10 days as of today.
I have this...
date gals runtotgals avg daily bal (gal)
7/1/09 7,562 7,562 7,562
7/3/09 14,929 22,491 7,497
7/6/09 14,950 37,441 6,240
7/7/09 30,268 67,709 9,673
7/8/09 81,020 148,729 18,591
7/9/09 22,488 171,217 19,024
7/10/09 14,876 186,093 18,609
But only want to display the information on the 10th. Whenever I try to remove (cut) any of the above items out of my report, it returns crappy results.
Ideas??? Sorry if I'm confusing...its just a product...of well..me...being confused.
Thanks in advance for any help
This works, and gives me the correct information for every day. However, I just need the average daily balance based on today.
Lets say I've sold 186k gallons in 10 days. I don't want to see each day displayed, I just want to see one row that shows the average daily balance for all 10 days as of today.
I have this...
date gals runtotgals avg daily bal (gal)
7/1/09 7,562 7,562 7,562
7/3/09 14,929 22,491 7,497
7/6/09 14,950 37,441 6,240
7/7/09 30,268 67,709 9,673
7/8/09 81,020 148,729 18,591
7/9/09 22,488 171,217 19,024
7/10/09 14,876 186,093 18,609
But only want to display the information on the 10th. Whenever I try to remove (cut) any of the above items out of my report, it returns crappy results.
Ideas??? Sorry if I'm confusing...its just a product...of well..me...being confused.