Add Three Previous Row Value Together to Make Next Row Value -Balance & Interest Calc
Howdy All,
I have three columns, StartingBalance, AnnualContribution, and InterestIncome.
I would like to build a query that for the first row, uses a previously defined elsewhere starting balance, annual contribution, and interest income. Just for the first row, these values are set by the user.
The second row, and until the end of the query, it automatically calculates the new starting balance value based on the previous row data.
For example, row 2's starting balance is the sum of the previous row's starting balance, annual contribution, and interest income.
This forces row 2's annual contribution and interest income to a calculated value new values based on the new starting balance value (the sum of the previous row's starting balance, annual contribution, and interest income).
This is then repeated until the end of the queried values.
Howdy All,
I have three columns, StartingBalance, AnnualContribution, and InterestIncome.
I would like to build a query that for the first row, uses a previously defined elsewhere starting balance, annual contribution, and interest income. Just for the first row, these values are set by the user.
The second row, and until the end of the query, it automatically calculates the new starting balance value based on the previous row data.
For example, row 2's starting balance is the sum of the previous row's starting balance, annual contribution, and interest income.
This forces row 2's annual contribution and interest income to a calculated value new values based on the new starting balance value (the sum of the previous row's starting balance, annual contribution, and interest income).
This is then repeated until the end of the queried values.
Last edited: