Production loss calculation during a period time

Discussion created by Pablo_M_R on Jun 27, 2020
Latest reply on Jun 30, 2020 by ChrisPIGuy

I'm a pretty newbie working Analysis services i would if somebody can guide me with this idea, My idea is how could i calculate losses between point A to B(Yellow) using a average value calculated from  behavior before A drops for calculate this time until almost reach B approximatly.idea pianalysis newbie production loss
which is the best function to make this calculation in PI AF analysis.
I have started here : 
Avg(InterpolatedValues('Test Point', 'y','t','-30m')) =Avg Value A