Discussion Board for collaboration on QlikView Scripting.
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:
Berliner Straße 11, 04105 Leipzig
Berliner Straße 9, 80805 München
Berliner Straße 11, 04105 Leipzig, Saxony
Berliner Straße 9, 80805 München, Bavaria
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
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.
In Qlikview You can use
Wildmatch() to achieve this
Mapping load *inline [
load *, MapSubString('MapZipCodesRegions',a) as newfield;
load * inline [
"Berliner Straße 11, 04105 Leipzig"
"Berliner Straße 9, 80805 München"