Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
I try to undestand how QlikView searches listbox with numbers
when user wirtes different expressions in a small separate windows
above of this listbox.
I have listbox in Tutorial Qlikview where is example for "Population (mio)".
Thanks,
Mirek
Mirek,
I believe with just typing a number, you will actually performing a text search, so you should be able to find and select 13.4 also by just typing 1 or 13 and press enter (but this will also include the other values that starts with 1 or 13). So you perform a search matching your search phrase with the beginning of the values to search in.
When you use a preceding >, <, >= or <=, you will perform a numeric search as you stated (you can also combine to ranges, like >10<20)
When using a preceding equal sign, you are actually starting an advanced search (please check also the Help for search), where you basically define a boolean expression and QV will return all records where the expression returns true.
So, when entering =1, all records will be selected (same for any other number except 0).
You wouldn't use an advanced search with a constant, but with something like
=sum(Sales)>10000
when operating the search on a customer fields (select all customers with sum(Sales) larger than 10000).
I don't know why you get anything selected with just typing =, or what you described with "All these selected lines are less then 0 and greater then 1."
So it might be useful if you could post a small sample application so we see what you are talking about.
Regards,
Stefan
(please note that there are also different search modes available in list box properties)
Mirek,
I believe with just typing a number, you will actually performing a text search, so you should be able to find and select 13.4 also by just typing 1 or 13 and press enter (but this will also include the other values that starts with 1 or 13). So you perform a search matching your search phrase with the beginning of the values to search in.
When you use a preceding >, <, >= or <=, you will perform a numeric search as you stated (you can also combine to ranges, like >10<20)
When using a preceding equal sign, you are actually starting an advanced search (please check also the Help for search), where you basically define a boolean expression and QV will return all records where the expression returns true.
So, when entering =1, all records will be selected (same for any other number except 0).
You wouldn't use an advanced search with a constant, but with something like
=sum(Sales)>10000
when operating the search on a customer fields (select all customers with sum(Sales) larger than 10000).
I don't know why you get anything selected with just typing =, or what you described with "All these selected lines are less then 0 and greater then 1."
So it might be useful if you could post a small sample application so we see what you are talking about.
Regards,
Stefan
(please note that there are also different search modes available in list box properties)
Stephan,
thank you very much for your GREAT answer. It have explained to me all my questions of numeric searching in listboxes!
And now to your questions:
So thank you very much for efficient answer and great examples (for ranges).
Mirek
Maybe I am missing something, but if you want to search for exact value of e.g. 14 and you don't want 142 returned, you can use something like
=FIELD=14
Thanks Stephan for your add,
it functiones exactly like you wrote:
Thank you.
Mirek