What's the best way to get metric results outside invalidation period in Analytics?

#1

My analytic needs metric results from X days prior to the start of the invalidation period to Y days after the end of the invalidation period. X and Y are not fixed and are specific to the source. X should be less than 730 days.

For example, if the data for 2017-09-01 is loaded and X is 365 and Y is 180, I’ll need to the metric results from 2016-09-01 to 2018-02-28.

The metric results are needed for regression algorithm.

What is the best way to get the metric result other than calling evalMetric in the loadContext function?

0 Likes

#2

If X & Y are not fixed and dependent on the source, you may chose to use “eval” with custom start and end in your metric expression and compute the result.

If that is not an option, then the only way to get this is by calling evalMetric in the function

0 Likes