Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
luis_pimentel
Partner - Creator III
Partner - Creator III

Map with multiple fields

Hi Community,

I am facing a challenge that I would like to share with everyone.

Imagine we have a FACT table like:

  FACT:

ABCDEFG
18934101
9272226
3314466
4423756

And also a "Mapping" Table like:

 

ABCDEFGOUTPUT
1 34 AA
2 6BB
3 4 CC
44 5 DD

Now, I need to retrieve the OUTPUT values in the FACT table. Considering that "blank" values in the mapping table means "regardless the value in the fact table".

The only solution I can think about is using a LOOP to create "all possible combinations of keys" or "all possible mapping tables" since the key to join both table is unknown. In other words, The key might be , A, AB, ABC, ABCD, .... etc. That means we have 7 factorial = 5040 possible keys.

FYI, my real scenario consist in a table with +50k rows and 10 mapping fields (about 4M possible combinations of keys). And a fact table with +50M rows.

Hope the explanation is clear enough.

Any ideas?

Thank you.

0 Replies