You need to consider that if the stock walks the timeline it will be natural for it to appear zero in a filter that is not available.
The best practice is to resolve this in the script with a flag (bedrag_current = 1) pointing out that this is the most current stock and then fetch it with Set Analysis, regardless of the selected period or bring last month's stock to the current one until there is a new mutation, based on inventory concept per month.