kculpepper77
Programmer
Based on a set of records <r> with data <x> which is grouped by attribute <y>; within each group of attribute <y> - i want to filter records as the running sum of data <x> exceeds criteria <z>.
for example, with the below data, as <x> exceeds <z> or 3.5 (by summing from top to bottom)- for each <y>, <r> is filtered accordingly.
y r x
- - -
a 1 1
a 2 2
a 3 4
a 4 2
b 1 1
b 2 5
b 3 6
b 4 2
c 1 4
c 2 4
c 3 2
c 4 8
c 5 4
so the query result would be like the below;
y r x
- - -
a 1 1
a 2 2
a 3 4
b 1 1
b 2 5
c 1 4
so could anyone support with how this could be applied in a access query. appreciate it.
for example, with the below data, as <x> exceeds <z> or 3.5 (by summing from top to bottom)- for each <y>, <r> is filtered accordingly.
y r x
- - -
a 1 1
a 2 2
a 3 4
a 4 2
b 1 1
b 2 5
b 3 6
b 4 2
c 1 4
c 2 4
c 3 2
c 4 8
c 5 4
so the query result would be like the below;
y r x
- - -
a 1 1
a 2 2
a 3 4
b 1 1
b 2 5
c 1 4
so could anyone support with how this could be applied in a access query. appreciate it.