AnsweredAssumed Answered

Filter array by index instead of value

Question asked by Ben_G on Jul 19, 2019

I'm working with a PI Point Array in my analysis, and I noticed that the function FilterData lets you make a new array with only the values that pass a criterion.  Is it possible to do a similar thing, only test the indices instead of the values?  For example, if I have a 30-element array, can I make a new array with only the first 10 elements?  Can I make one with only the values where the indices are between 12 and 18?  This would be incredibly helpful in my analysis, but I can't figure out how to achieve this in PI analytics.