I have searched looking for infor for creating custom pids, calculated from existing pids, but Is there any way to create a new Pid that looks up a calibration table as seen in the tune tool {B5101}?

I would like to create a calculated pid that looks at commanded spark and compares to delivered spark

{B5101}/{SAE.SPARKADV}

Any help much appreciated?