Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Aara
Contributor
Contributor

Filter values based on Prefix

I have a Input Box and a Straight table.  If I search with a prefix of a value in Input Box , straight table should return all the values with the prefix. For example, If I search with a Prefix as CRO in description column and click on Apply Filter button, it should return all the description starting with CRO.

Labels (1)
4 Replies
vchuprina
Specialist
Specialist

Hi,

You can add a search object instead of an input box and apply the filter button

 

vchuprina_4-1651481826825.png

 

Add a list of fields for search 

vchuprina_1-1651481625081.png

vchuprina_0-1651481549418.png

 

Also, you can change the style on the presentation tab 

vchuprina_2-1651481702870.png

 

Regards,

Vitalii

 

Press LIKE if the given solution helps to solve the problem.
If it's possible please mark correct answers as "solutions" (you can mark up to 3 "solutions").
Akeem
Contributor
Contributor


@Aara wrote:

I have a Input Box and a Straight table.  If I search with a prefix of a value in Input Box , straight table should return all the values with the prefix. For example, If I search with a Prefix as CRO in description column and click on Apply Filter button, it should return all the description starting with CRO.

HP Instant Ink Plans


I was trying this out and got some issues and still finding it can you give some more suggestions if any thanks in advance.

Marijn
Creator II
Creator II

Hi Aari,

You can also use a List Box. By setting Default Search Mode to Use Wildcard search, two * will be added to your search string. This means that if you search for CRO, it will look like *CRO*. The results will include all strings that contain CRO.

Marijn_0-1651493458887.png

 

Additionally, you can also search for CRO*, which will return every string that starts with CRO.

Marijn_1-1651493553276.png

 

Hope this helps!

Marijn

Aara
Contributor
Contributor
Author

Adding to my requirement, reason for Input box is, user should have options to filter multiple values for the particular column. Example, when user wanted to search with State that starts with, "CA" , "NO"  in a comma separated value search, it should display all the State that begins with "CA" and "NO".