I've got a headache with running totals, I think I've got a special twist on the question. My data looks like the first table, and I'd like to create the running total in the second table, filling in gaps in between. I can think of various ugly ways to do this, can anyone recommend an efficient method?
[tt]
FISH MONTH NUMBER_PURCHASED
GOLDFISH 1 1
GOLDFISH 3 2
GOLDFISH 8 1
GOLDFISH 12 1
BLUEGILL 2 1
BLUEGILL 5 2
BLUEGILL 7 2
FISH MONTH TOTAL_PURCHASED
GOLDFISH 1 1
GOLDFISH 2 1
GOLDFISH 3 3
GOLDFISH 4 3
GOLDFISH 5 3
GOLDFISH 6 3
GOLDFISH 7 3
GOLDFISH 8 4
GOLDFISH 9 4
GOLDFISH 10 4
GOLDFISH 11 4
GOLDFISH 12 5
BLUEGILL 1 0
BLUEGILL 2 1
BLUEGILL 3 1
BLUEGILL 4 1
BLUEGILL 5 3
BLUEGILL 6 3
BLUEGILL 7 5
[/tt]
Thanks!
nerf13
[tt]
FISH MONTH NUMBER_PURCHASED
GOLDFISH 1 1
GOLDFISH 3 2
GOLDFISH 8 1
GOLDFISH 12 1
BLUEGILL 2 1
BLUEGILL 5 2
BLUEGILL 7 2
FISH MONTH TOTAL_PURCHASED
GOLDFISH 1 1
GOLDFISH 2 1
GOLDFISH 3 3
GOLDFISH 4 3
GOLDFISH 5 3
GOLDFISH 6 3
GOLDFISH 7 3
GOLDFISH 8 4
GOLDFISH 9 4
GOLDFISH 10 4
GOLDFISH 11 4
GOLDFISH 12 5
BLUEGILL 1 0
BLUEGILL 2 1
BLUEGILL 3 1
BLUEGILL 4 1
BLUEGILL 5 3
BLUEGILL 6 3
BLUEGILL 7 5
[/tt]
Thanks!
nerf13