Hi all, I'm trying to use the Retrieval Methods to calculated the average and standard deviation (the event weighted ones) with an specific time range

for example:

StartTime: 2018/10/10 15:06:00

EndTime: 2018/10/10 15:46:00

Those date could be change by the user. So, I create two attributes StartTime and EndTime to let the user change it if they want.

And use relative expression to define the time range.

I've been review the PI square and I only find examples with moving time windows, like '*'- 10m.

But no with any Full Time Range .

Is there a way to configure this in a Retrieval Method? Is it possible?

And if is not, can you guys suggest me another way to calculate this?

Best Regards

Unfortunately there isn't another way to calculate an event weighted standard deviation. Practically all of the summary calculation functions available in PI analytics are time-weighted in basis, the exception being TagMean. The method that was discussed in SStDev computation of a tag within a timeframe? (PI AF Analysis) using PI AF 2018 is the only way I've found that you can get an event weighted standard deviation using Analytics.