C
Cornbeef
I currently have a table of weekly measurements for different categories. I
need to get the sum of the previous 6 weeks for some calculations, but there
are some low values that I want to skip. The criteria for skipping a record
is the TSqFootage being less than 10% of the category standard, which is
35000 for A. I have included a sample of the data below. Each of the sums
should include six weeks worth of data. For example to get the first sum,
the records for 6/30, 7/14, 7/28, 8/4, 8/11, and 8/18 were used. The
standards are located in a different table.
Category (PK) Week (PK) TSqFootage Sum
A 18-Aug-07 32779.25 238492.8
A 11-Aug-07 42786.1 241209.15
A 04-Aug-07 47194.35
A 28-Jul-07 43792.7
A 21-Jul-07 0
A 14-Jul-07 27787.2
A 07-Jul-07 179.55
A 30-Jun-07 44153.2
A 23-Jun-07 35495.6
I would appreciate any help I can get on this. Thanks
need to get the sum of the previous 6 weeks for some calculations, but there
are some low values that I want to skip. The criteria for skipping a record
is the TSqFootage being less than 10% of the category standard, which is
35000 for A. I have included a sample of the data below. Each of the sums
should include six weeks worth of data. For example to get the first sum,
the records for 6/30, 7/14, 7/28, 8/4, 8/11, and 8/18 were used. The
standards are located in a different table.
Category (PK) Week (PK) TSqFootage Sum
A 18-Aug-07 32779.25 238492.8
A 11-Aug-07 42786.1 241209.15
A 04-Aug-07 47194.35
A 28-Jul-07 43792.7
A 21-Jul-07 0
A 14-Jul-07 27787.2
A 07-Jul-07 179.55
A 30-Jun-07 44153.2
A 23-Jun-07 35495.6
I would appreciate any help I can get on this. Thanks