J
Jorist
I have data the I need to total using a running sum. However I need this
running sum to total based upon the value of the field being totaled (Largest
to Smallest). No other fields are available to uniquely identify this ranking.
I am using the code below however when I look at the resulting table, I
noticed that in those instances where the value of [Field] was identical to
other fields..... they would all be totaled together for all of those records.
CumulativeTotal: (SELECT Sum([Field1]) FROM [Table1] AS [Self] WHERE
[Self].[Field1] >= [Table1].[Field1])
Here is an example of what is occuring along with the desired results.
Field 1 Running Sum Results Desired
12 12 12
9 21 21
7 28 28
3 34 31
3 34 34
2 36 36
1 40 37
1 40 38
1 40 39
1 40 40
I have one other field available that is unique to each value in Field1 but
there is no ranking to this field. Some values are greater or less than other
values both before and after each Field2 value.
Any help trying to resolve this would be greatly appreciated.
running sum to total based upon the value of the field being totaled (Largest
to Smallest). No other fields are available to uniquely identify this ranking.
I am using the code below however when I look at the resulting table, I
noticed that in those instances where the value of [Field] was identical to
other fields..... they would all be totaled together for all of those records.
CumulativeTotal: (SELECT Sum([Field1]) FROM [Table1] AS [Self] WHERE
[Self].[Field1] >= [Table1].[Field1])
Here is an example of what is occuring along with the desired results.
Field 1 Running Sum Results Desired
12 12 12
9 21 21
7 28 28
3 34 31
3 34 34
2 36 36
1 40 37
1 40 38
1 40 39
1 40 40
I have one other field available that is unique to each value in Field1 but
there is no ranking to this field. Some values are greater or less than other
values both before and after each Field2 value.
Any help trying to resolve this would be greatly appreciated.