Qlik Community

QlikView Scripting

Discussion Board for collaboration on QlikView Scripting.

Announcements
QlikView Fans! We’d love to hear from you.
Share your QlikView feedback with the product team… Click here to participate in our 5-minute survey.
Rules, plus terms and conditions, can be found here.
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

Re: JOIN LIKE

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

Re: JOIN LIKE

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

Re: JOIN LIKE

Hi,

In Qlikview You can use

Wildmatch() to achieve this

Regards,

Great dreamer's dreams never fulfilled, they are always transcended.
MVP
MVP

Re: JOIN LIKE

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"

];

Community Browser