Dear all,
I have a simple table, with only the following fields:
- Key
- MyDate
- Price
I would like to biuld a Query which uses these fields and which make some
other calculations on the Price.
To do one calculation, I need to get the difference between the last two
"Price", to get a "ModifiedPrice".
This difference would be this one:
Difference = "LastPrice" - "PenultimatePrice"
Then my ModifiedPrice would be simply equal to Price + Difference...
1. Could you help me finding the good way to do this rather simple
calculation, either directly in my query, or through a function?
2. I also would like to be able to calculate the percentage difference of the
prices.
The calculation would be:
Return : (Price / Price[-1] ) -1
However, I do not know how to find the number "Price[-1]" in Access.
Thanks a lot for your help.
Regards,
Laurent