The “PnLStart” context value, together with the PnLEnd context value can be used to filter the scenarios and use a sub-vector instead of the whole vector when computing the tail measures measures (VaR, ES, VaE).
In the following screenshot, only scenarios with indexes from 21 to 25 will contribute to the Value-at-Risk measures.