You could try using "=COUNT([Invoice row-nr])>2 and COUNT([Invoice row-nr])<=5" as a search to select Invoice ID's and then store that selection as a bookmark. Selecting that bookmark will perform search in Invoice ID field based on your criteria.
I've used this approach in QV, not sure if it works in Sense though.
Thanks for the idea; I can try that. Nevertheless, in the end I would also like to use the various categories (which are calculated) in further diagrams, like e.g. a pie chart; I would like to visualize the relation of the categories. Hence working with bookmarks wouldn't be the ideal solution.
Any further ideas? Thanks in advance!
Try to precalculate those categories in script to create a new field like "Invoice Size Category", then you can use that field both dimension and filter. Or, if your "bucket" size is always the same, you can use Class() function to create calculated dimension, wich will work as a filter as well.
PS: I've just tried storing a search as a bookmark in Qlik Sense and it works.