Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Selection in field problem

Hello,

Here i'm attaching my application along with description of problem. Can anyone help me on this.

1 Solution

Accepted Solutions
Miguel_Angel_Baeyens

Hi Jacq,

I'd use something like the following (using different lines because I have not tested it). What the following does is take the string from the result of concatenating all possible values from field LensKey sorted numeric ascending (as in your listbox) to the nth time (value in vNoOfLenskey).

='(' & Left(
     Concat(DISTINCT LensKey, '|', LensKey)
     , Index(
          Concat(DISTINCT LensKey, '|', LensKey)
          , '|', $(vNoOfLenskey)) -1
     )
& ')'

Hope that helps.

Miguel

View solution in original post

3 Replies
hic
Former Employee
Former Employee

Not sure it can be done… Your selection depends very much on the sort order of the list box and this is not the same as the sort order of the data. I would build the sort order into the search string, e.g. ='<='&Min(LensKey,$(vNoOfLenskey))

and see how far I get with this approach.

Miguel_Angel_Baeyens

Hi Jacq,

I'd use something like the following (using different lines because I have not tested it). What the following does is take the string from the result of concatenating all possible values from field LensKey sorted numeric ascending (as in your listbox) to the nth time (value in vNoOfLenskey).

='(' & Left(
     Concat(DISTINCT LensKey, '|', LensKey)
     , Index(
          Concat(DISTINCT LensKey, '|', LensKey)
          , '|', $(vNoOfLenskey)) -1
     )
& ')'

Hope that helps.

Miguel

Not applicable
Author

Thanks a lot Miguel.