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

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Return Like Value

Hi,

I'm a beginner in Qlikview.

Suppose I have 2 tables.

1st table have a field with "JUAN DELA CRUZ" and

2nd table have a field with "JUAN DELA CRUZ JR".

I want that when I select Juan dela cruz on first table, all values containing Juan Dela Cruz on the 2nd table will also show including those with "JR" in it.

How am I supposed to do that?

Thank you

1 Solution

Accepted Solutions
petter
Partner - Champion III
Partner - Champion III

A simple and straightforward approach could be like this - maybe it suits your specific needs although it might not be a robust general solution.

It is just a Like matching with Name1 appended with the wildcard * to find matches in Name2:

2015-08-26 #3.PNG

View solution in original post

3 Replies
rwunderlich
Partner Ambassador/MVP
Partner Ambassador/MVP

QlikView links table only on exact matches. So you will need to normalize all variations to the same value. You can do this using the MAPPING load feature to translate, for example, "JUAN DELA CRUZ JR" to "JUAN DELA CRUZ".

There are also some functions you can use to clean up anticipated variations, such as capitalization. The Capitalize() function can be useful for that (see Help for more on Capitalize).

You may also consider using string functions like PurgeChar() to remove punctuation such as period and commas.

Lastly, you can create your own script function to create a common key for similar sounding names, using algorithms like soundex. I believe there are some examples here on the Forums.

-Rob

swuehl
MVP
MVP

Not sure if these tables are linked in your data model and where you want to show the value of your second table.

Maybe you can use a field event trigger on your first field (Settings - Document properties - triggers), then create an action Select - Select in field:

Field:

FieldNameInSecondTable

Search string:

=Only(FieldNameInFirstTable) &'*'

petter
Partner - Champion III
Partner - Champion III

A simple and straightforward approach could be like this - maybe it suits your specific needs although it might not be a robust general solution.

It is just a Like matching with Name1 appended with the wildcard * to find matches in Name2:

2015-08-26 #3.PNG