Hi All,
I'm having problems getting calculated query to work.
At the moment, my query returns 3 values.
date, close, adjustment
This would look like
2015-04-10 1170 1165
2015-04-13 1163 1158
2015-04-14 1167 1162
2015-04-15 1154 1149
2015-04-16 1137 1132
2015-04-17 1127 1122
2015-04-21 1195 1190
2015-04-22 1201 1196
2015-04-23 1190 1190
2015-04-24 1186 1186
What I am trying to do is add a new field that has the following calculated data.
(close/adjusted)* last value of adjusted
In this case : looking at the last 5 records:-
(1127/1122)*1186
(1195/1190)*1186
(1201/1196)*1186
(1190/1190)*1186
(1186/1186)*1186
My trouble is that I can't get the last value to use in my equation. I tried Dlast but just get pop ups.
Do I have to create a separate query to get my last value so that I can use it in an equation? ..or am I just being a bit thick over this :banghead:
cheers,
El-d
I'm having problems getting calculated query to work.
At the moment, my query returns 3 values.
date, close, adjustment
This would look like
2015-04-10 1170 1165
2015-04-13 1163 1158
2015-04-14 1167 1162
2015-04-15 1154 1149
2015-04-16 1137 1132
2015-04-17 1127 1122
2015-04-21 1195 1190
2015-04-22 1201 1196
2015-04-23 1190 1190
2015-04-24 1186 1186
What I am trying to do is add a new field that has the following calculated data.
(close/adjusted)* last value of adjusted
In this case : looking at the last 5 records:-
(1127/1122)*1186
(1195/1190)*1186
(1201/1196)*1186
(1190/1190)*1186
(1186/1186)*1186
My trouble is that I can't get the last value to use in my equation. I tried Dlast but just get pop ups.
Do I have to create a separate query to get my last value so that I can use it in an equation? ..or am I just being a bit thick over this :banghead:
cheers,
El-d