Why is my for loop iterating only once and not calculating fields correctly?
Hello,
I'm trying to create a script which will calculate the proportional percentage of a numerical entry sectioned by date. For example:
| Date | % | Adj. % | Total |
|---|---|---|---|
| 2/1/19 | 5% | 100% | 5 |
| 2/2/19 | 5% | 100% | 5 |
| Date | % | Adj. % | Total |
|---|---|---|---|
| 2/15/19 | 5 | 11.11% | 45 |
| 10 | 22.22% | ||
| 30 | 66.66% | ||
| 2/18/19 | 6 | 75% | 8 |
| 2 | 25% |
So, the "Adj. %" values associated with each "parent" "Date" value should equal to 100% when added together. My issue is that my script doesn't seem to iterate properly and I end up with strange "Adj. %" values that do not reflect the respective "Date" and "%" field value entries. I included a link to a pdf, which includes the script I'm having issues with: https://docdro.id/TDcy6RX
I'm going crazy over this, any help will be highly appreciated!
