Hi all,
I am trying to use one calculation to update multiple fields using information from multiple rows. As an illustration, there are three pieces of logic I want to incorporate:
- I eat three apples a week
- I can carry 10 apples at a time
- If I buy 40 apples in a ten week period, I get the last five for free
What I imagine is the following fields:
Number of Apples I Have | Week | Total Apples Purchased |
10 | 1 | 10 |
7 | 2 | 10 |
4 | 3 | 10 |
1 | 4 | 10 |
8 | 5 | 20 |
5 | 6 | 20 |
2 | 7 | 20 |
9 | 8 | 30 |
6 | 9 | 30 |
13 | 10 | 40 |
10 | 0 | 0 |
7 | 0 | 0 |
4 | 0 | 0 |
1 | 0 | 0 |
8 | 1 | 10 |
5 | 2 | 10 |
2 | 3 | 10 |
9 | 4 | 20 |
Basically, I need a running total of the number of apples I have purchased so I know how many to buy in week ten. And I need a field that is a re-setting counter from the first purchase so I know when I've reached week ten.
Is there a way to update separate fields as I do a multi-row formula on a single field?
Thank you!