Thanks for you quick response.
Unfortunately it doesn't seem to do the trick (unless I misunderstood your advice).
I have made a small sample of the problem showing the expected result and a second area trying to use your advice with variables.
dynamicsetanalysis.qvw 141.0 K
the specific problem that you presented might not have the solution that you are looking for - mainly because Set Analysis expressions, naturally, are evaluated over the full data set, and they can't be calculated based on the line numbers.
I'm questioning your initial statement that locked you into a problem with no solution:
SteenOlesen wrote:I'm currently building a QV application, where each line in a straight table must use different bookmarks for the set analysis.
Perhaps you could come up with a different technique that solves your business problem, except for using Bookmarks?