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: 
Not applicable

Wildmatch 2 excel files

Hi,

I am new to qlikview, but am experienced in other programming languages VBA, SQL, C and I am just needing some help with a problem that I have.

I have 2 excel sheets sheet 1 contains a list of customers and has 5 fields that I need to look at ("address line 1", "address line 2", "address line 3", "address line 4", "address line 5")

Sheet 2 then contains a list of "Countries", there "Demonym" and there "status"e.g

Address 1Address 2Address 3Address 4Address 5
15 The walk YorkshireEngland
10 ScottishScotland
10 The walk GermanyFrance

CountryDemonymStatus
EnglandEnglishGood
ScottishScotlandBad
GermanyGermanIndifferent

What I need to do is find if any of the countries or there Demonym appears in address line 1-5, and then match that to there status.

so for the above I would expect it to find England in address line 3 and output the status good, I would expect it to find Scottish in address line 1 and Scotland in address line 2 and output the status bad. And i would expect it to find Germany in address line 1 and output the Status Indifferent.

Couple of Issues been that I do not produce either of the excel sheets so there format is what I am stuck with and the amount of countries on sheet 2 is completely random and can be updated at any point. Finally I need to have a full register of sheet 1 without any changes made to it loaded into qlikview so I am unable to do the checking through the load function.

11 Replies
swuehl
MVP
MVP

Have you put a MAP table lable in front of the mapping loads?

MAP:

MAPPING LOAD Country as F1, '>Begin>'&Status&'<End<' as F2

Resident Table2;

MAPPING LOAD Demonym as F1, '>Begin>'&Status&'<End<' as F2

Resident Table2;

MarcoWedel

you're welcome.

Glad you liked it.

I think Stefan's solution should have the better performance with your larger tables, so maybe you give it another try with the additional MAP name like suggested.

regards

Marco