Now this will give me the closest value to a "Selected" service date. So i have to select the date each time and then according to that service date the calculation will work. I need to do this without a selection.
I got around the problem using a macro to select each service date and export a QVD, then partial reload all the QVD's back into QlikView. This is not good practice. Especially where I want to use this.