Hello:
I need help calculating a compounding value in Access. Attached is a database with a table containing some sample data which I hope proves useful.
Using self-join queries I know how to calculate the percentage change between two values in a data series. However, this method (as far as I can tell) does not work for compounding. I suspect this must be accomplished using VBA.
Here is what I am after:
If I have monthly percentage changes I would like to calculate an index that begins at 100 and compounds using these monthly percentage changes.
So if month 1’s return = 5%, month 2’s = 3% and month 3’s = -1% I would like an index that begins at 100 and then has the values 105, 108.15, 107.0685.
Alternatively, the VBA code could use the raw values in my table to generate the percentage changes and then proceed to generate the compounding figure.
Ideally, I would have a public function that I could then call from a query. If someone could provide such code or direct me to a similar example I would be very appreciative.
Full disclosure: I posted this message on a competing forum but did not receive any responses so after a reasonable waiting period I am now trying this forum.
Thank you,
I need help calculating a compounding value in Access. Attached is a database with a table containing some sample data which I hope proves useful.
Using self-join queries I know how to calculate the percentage change between two values in a data series. However, this method (as far as I can tell) does not work for compounding. I suspect this must be accomplished using VBA.
Here is what I am after:
If I have monthly percentage changes I would like to calculate an index that begins at 100 and compounds using these monthly percentage changes.
So if month 1’s return = 5%, month 2’s = 3% and month 3’s = -1% I would like an index that begins at 100 and then has the values 105, 108.15, 107.0685.
Alternatively, the VBA code could use the raw values in my table to generate the percentage changes and then proceed to generate the compounding figure.
Ideally, I would have a public function that I could then call from a query. If someone could provide such code or direct me to a similar example I would be very appreciative.
Full disclosure: I posted this message on a competing forum but did not receive any responses so after a reasonable waiting period I am now trying this forum.
Thank you,