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

tMap and lookup on dimension table (with versioning)

Hi all,
I have a doubt. What's the best solution to do a lookup from fact table to a dimension table with versioning?
Please consider performance and code maintenance.
This is my solution (that works):
Fact table
0683p000009MGWG.png
dim table
0683p000009MGY1.png

job
0683p000009MGZ0.png
 tMap

0683p000009MGcR.png

Expression filter in output flow
0683p000009MGcW.png

Result (correct)

0683p000009MGcb.png

Problem is how to do a complex join to find the correct version of a dimension occurrence, using application id and the invoice date. (It's a left outer join because I want to keep missing values and mark it with a default missing dimension key).
Using tMap, it's required to use left outer join and all matches. The filter expression for date range join, is in the output expression filter.
I didn't find any working alternative. Any idea or suggestion?
Fact table could be big (5-20 Mil rows ), so I 'm looking for a better performance.

Thank's for help.

Labels (2)
10 Replies
gorotman
Creator II
Creator II
Author

Hi saadia, is better if you create a new post for you request, then insert more informations and some schema to exlpain it.
bye