I am strugling with little bit with peek function. I have inventories in data table. In this table you can see inventory per period if there has been material movements within the period. If there is no value in this table for some period, it means that the inventory value is same as previous period, so in case there is no movements within in period I need to use peek function to return the last value for the period.
This script doesn't work too properly. As you can see below, in case there is now inventory value in some cases it returns the last value from the last series In Example below it returns the last value from the "group" 4444|11111 to 4444|22222 cause there isn't any data for 4444|22222 before Feb-2013.
How should I change the formula to say QlikvIew to stop searching the last value when the group change (AccumulationKey)?