Skip to main content
Announcements
Global Transformation Awards! Applications are now open. Submit Entry
cancel
Showing results for 
Search instead for 
Did you mean: 
kvr9
Creator
Creator

Fuzzy Lookup in Qliksense

Hi ,

 

We have a customer data and customer name is stored as below format, I would like to use fuzzy logic and derive a single line for that customer, 

Input data

Thomas Craig(Premium)

Thomas Craig

T.Craig

 

Required output is Thomas Craig.

Labels (2)
1 Reply
rwunderlich
Partner Ambassador/MVP
Partner Ambassador/MVP

One solution is to build a mapping table of the exceptions mapped to the final name. You have to maintain this by hand, but you only have to include the exceptions, or potential exceptions. For example:

CompanyMap:
MAPPING
LOAD * INLINE [
from, to
I.B.M, IBM
Intl Bus Mach, IBM
Msoft, Microsoft
MS, Microsoft
]
;

MAP Company USING CompanyMap;

Companies:
LOAD Company
INLINE [
Company
IBM
I.B.M
Microsoft
Msoft
MS
ms
Energy Specialists
]
;

Another option is to use MapSubstring to look for partial names, but that doesn't cover all situations well. e.g T.Craig.

-Rob
http://www.easyqlik.com
http://masterssummit.com
http://qlikviewcookbook.com