Skip to main content
Announcements
Have questions about Qlik Connect? Join us live on April 10th, at 11 AM ET: SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

JOIN LIKE

Hi there,

do you have an idea how to join tables on like operator? I've got a full address table and a zip codes with regions table. I need to match address with a region on fly like here:

FullAddress:

Berliner Straße 11, 04105 Leipzig

Berliner Straße 9, 80805 München

ZipCodesRegions:

04105, Saxony

80805, Bavaria

Final:

Berliner Straße 11, 04105 Leipzig, Saxony

Berliner Straße 9, 80805 München, Bavaria

Regards,

Przemek

4 Replies
alexandros17
Partner - Champion III
Partner - Champion III

There are 2 main ways (using Qlik functionalities):

1) join the tables and filter the resulting one with a where condition with wildmatch function (it works as a like but with fields on the same table)

2) Extract the address code as a new field in both the tables and then join them on this new field.

for example you could extract the carachters after comma in the first table and before comma in the second

Let me know

Not applicable
Author

Hi Alessandro,

the first one is not very elegant, the second not possible in my dataset. I'm using mapsubstring now but perhaps there's something better I didn't think of. Anyway, thank you for your reply.

Regards,

Przemek

PrashantSangle

Hi,

In Qlikview You can use

Wildmatch() to achieve this

Regards,

Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂
maxgro
MVP
MVP

MapZipCodesRegions:

Mapping load *inline [

from,to

04105, Saxony

80805, Bavaria

];

FullAddress:

load *, MapSubString('MapZipCodesRegions',a) as newfield;

load * inline [

a

"Berliner Straße 11, 04105 Leipzig"

"Berliner Straße 9, 80805 München"

];