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: 
rmadursk
Contributor III
Contributor III

Need to display a list of names based on their matching a string from an Input Box.

If I have a list like this. 2 Columns:

Place Name

1   First, Person

2 Second, Person

3 Third, Person

 

and i want to use a variable, let's call it vSearchBox, to decide which rows to display in a table. 

If I put first in the input box I only want to see 1 row of data.

If I put ird in the input box I only want to see 1 row of data.

If I put erson in the input box I want to see 3 rows of data.

If the input box is empty I want to see all 3 rows of data.

What would my syntax be?

Should I create a set expression?  I've tried using WildMatch, Like, Only and various if statements to get what I want but I'm stumped and can't find a relevant example in the forums.

 

 

Labels (3)
1 Solution

Accepted Solutions
Anil_Babu_Samineni

I suspect this is in Qlik view since you mentioned Input box.

Anyway, Something like this?

Anil_Babu_Samineni_0-1700857302029.png

When you type In Input Box and enter?

Anil_Babu_Samineni_1-1700857335146.pngAnil_Babu_Samineni_2-1700857350225.png

QVW attached for ref.

Expression Used for Place: =If(WildMatch(Place, '*' & '$(Variable1)' & '*'), Place)

 

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful

View solution in original post

2 Replies
Anil_Babu_Samineni

I suspect this is in Qlik view since you mentioned Input box.

Anyway, Something like this?

Anil_Babu_Samineni_0-1700857302029.png

When you type In Input Box and enter?

Anil_Babu_Samineni_1-1700857335146.pngAnil_Babu_Samineni_2-1700857350225.png

QVW attached for ref.

Expression Used for Place: =If(WildMatch(Place, '*' & '$(Variable1)' & '*'), Place)

 

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
rmadursk
Contributor III
Contributor III
Author

It is in Qlik Sense. I should have been more specific.  It is a Variable Input Box from the Dashboard bundle.

Also, Place is an integer and all 3 people have the same last name.

I did not try using the & for the comparison string.  That seems to do the trick.

Many thanks.