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: 
udit_kumar_sana
Creator II
Creator II

Mapping Composite Key for multiple combinations

Hi All,

I am facing a challenge to solve the below issue:

Suppose I have 2 tables called Table1 and Table2. I need to join them using a composite key containing 4 fields namely A, B, C and D.

Now the data is as follows:

There are rows in the table2 where one of the mapping fields has ‘*’ in it. This means that for that line in the table that field is ignored, the mapping is then done for all fields on a row with a  value other than ‘*’ in a field.

This can happen for more than 1 fields for a single record. For example:

TableNameFieldAFieldBFieldCFieldD
                Table11234
                Table21*34

Now for the above example, as FieldB has '*' as a value, key joining happens based on 1-3-4.

Similarly, it may so happen that '*' comes as a value for multiple fields.

How can this be implemented in Qlikview dynamically without hard coding '*' values?

Regards,

Udit

10 Replies
jonathandienst
Partner - Champion III
Partner - Champion III

Have a look at this article from Henric C:

Generic keys

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein