modglin
Programmer
- Apr 10, 2001
- 105
I have a report that is grouped by Date and then by Location.
In the database there is a field EndingGallons.
In the report I need to get the Ending Gallons from the prior day.
Since I am grouping by Date first and not location, when I try to pull in the previous({EndingGallons}) it does not give me the previous for that particular location.
Some of the fields that are used in the table
{Date}, {Location}, {Product}, {EndingGallons}, {Receipts}, {GallonsSold}
The report should look like this example:
Currently using previous({EndingGallons}) does not give me the previous gallons for the particular store that I am needing, instead it is giving me the previous ending gallons for whatever store entered their data into the tables first.
The Beginning Gallons for Store 100 on 11/2 should be the 5,816 that is reflected above, however, in my report it is picking up Store 200’s 11/1 information of 5,795 and Store 200 on 11/2 is picking up 5,451 from store 100 11/2 information.
In the database there is a field EndingGallons.
In the report I need to get the Ending Gallons from the prior day.
Since I am grouping by Date first and not location, when I try to pull in the previous({EndingGallons}) it does not give me the previous for that particular location.
Some of the fields that are used in the table
{Date}, {Location}, {Product}, {EndingGallons}, {Receipts}, {GallonsSold}
The report should look like this example:
Code:
11/1/06
Location (Field Names) Product 1
100 previous({EndingGallons}) 6,992
{receipts} 4,000
Total 10,992
{Ending Gallons} 5,816
Qty Acct For (Ttl-End Gal) 5,176
{GallonsSold} 5,131
Over Short (Qty Acct For-Gal Sold) -45
200 previous({EndingGallons}) 5,451
{receipts} 5,400
Total 10,851
{Ending Gallons} 5,795
Qty Acct For (Ttl-End Gal) 5,055
{GallonsSold} 5,032
Over Short (Qty Acct For-Gal Sold) -32
11/2/06
100 previous({EndingGallons}) 5,816
{receipts} 4,770
Total 10,586
{Ending Gallons} 5,451
Qty Acct For (Ttl-End Gal) 5,135
{GallonsSold} 5,111
Over Short (Qty Acct For-Gal Sold) -24
200 previous({EndingGallons}) 5,796
{receipts} 5,200
Total 10,996
{Ending Gallons} 6,607
Qty Acct For (Ttl-End Gal) 4,389
{GallonsSold} 4,360
Over Short (Qty Acct For-Gal Sold) -29
The Beginning Gallons for Store 100 on 11/2 should be the 5,816 that is reflected above, however, in my report it is picking up Store 200’s 11/1 information of 5,795 and Store 200 on 11/2 is picking up 5,451 from store 100 11/2 information.