Using another tag as the time parameter for TagVal()

I am trying to create a tag that reports the value of tag A a number of minutes in the past determined by tag B. Tag B changes (it is a retention time).

TagVal('A', -'B')

Trying to do this throws the following error: Error -2147220186: Failed to retrieve events from server. [-15017] PIvalue Type is Not Allowed For This Call

I tried to circumvent this restriction by using TagAvg(), but the second time argument will only accept the current time '*'.

Does anyone know how I could make this work?

Parents Reply Children
No Data