Hi all,
Does anyone know a technique for extracting a range of values from a sorted list of variable length?
I can already get the TOP() 10 values, but I need to get the next range. Eg I need to get values 11 to 20.
My apologies for asking this twice. -I suspect I tagged and worded my first question poorly.
Thanks in advance
Stel
Solved! Go to Solution.
Hi @Stelio_Pappas ,
You could try the below expression
TOP ( [SortedList]- (TOP ( [SortedList] , [From]-1) ), [To] - [From]+1)
[SortedList] is list of sorted text elements. [From] and [To] are number type columns defining the range. I tested the expression on text elements list, even though it should typically work on lists of other elements as well.
User | Count |
---|---|
18 | |
11 | |
11 | |
8 | |
4 |