Can I get the position of something in a list? for example if I do an orderby and get a list of results, Can I then say so _THIS key is 5th?
@Aleksi_Alkio probably can roll this off of his tongueโฆ
It would be possible with a INDEXOF() function but it doesnโt exist.
@Bellave_Jayaram hrmโฆ iโm thinking maybe some sort of find, len, etcโฆ
We donโt have this functionality. While we have โListโ types, there are no operations to sort them. In fact, their order is not guaranteed (they are really more Sets than Lists) so anything involving position would be a hack at best at the moment.
How about something likeโฆ TOP(ORDERBY(SELECT(โฆ),[Datetime],5) - TOP(ORDERBY(SELECT(โฆ),[Datetime],4)?
Iโll need to play with that concept a bitโฆ
OrderBy only works with a list of keys/refs. So it is going to be challenging (not to mention, wildly inefficient!)
User | Count |
---|---|
45 | |
27 | |
27 | |
21 | |
13 |