Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
qlikviewforum
Creator II
Creator II

In which scenario we use Lookup instead of ApplyMap

In which scenario we use Lookup instead of ApplyMap. Please provide the example for the same with some scenario.

Labels (1)
2 Replies
isorinrusu
Partner - Creator III
Partner - Creator III

For lookup() you'd need to have the table previously loaded in your data model. But if you just need to map some field quickly from a table that's not in your data model, ApplyMap() is more practical since, even though you have to load the table, it will be dropped automatically. And it makes code easier to understand.
jonathandienst
Partner - Champion III
Partner - Champion III

ApplyMap() is usually faster and simpler than Lookup, and allows defined values for when a match is not made. So i would only use Lookup() if ApplyMap() was impractical. Although if the data was already loaded for some other reason, and the table was not too large, you could use Lookup() rather than reloading a mapping table for ApplyMap().

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