<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Is lookup() function expensive? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Is-lookup-function-expensive/m-p/164476#M37163</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Oleg.&lt;/P&gt;&lt;P&gt;I really appreciate your time.&lt;/P&gt;&lt;P&gt;I will try out this approach first thing tomorrow. and will let you know if it worked or not!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 26 May 2010 04:17:22 GMT</pubDate>
    <dc:creator>boorgura</dc:creator>
    <dc:date>2010-05-26T04:17:22Z</dc:date>
    <item>
      <title>Is lookup() function expensive?</title>
      <link>https://community.qlik.com/t5/QlikView/Is-lookup-function-expensive/m-p/164470#M37157</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Qlikers,&lt;/P&gt;&lt;P&gt;Is LOOKUP() function expensive in terms of performance?&lt;/P&gt;&lt;P&gt;Does it slow down the reload drastically?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Replies would be highly appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 May 2010 18:55:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Is-lookup-function-expensive/m-p/164470#M37157</guid>
      <dc:creator>boorgura</dc:creator>
      <dc:date>2010-05-25T18:55:37Z</dc:date>
    </item>
    <item>
      <title>Is lookup() function expensive?</title>
      <link>https://community.qlik.com/t5/QlikView/Is-lookup-function-expensive/m-p/164471#M37158</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rocky,&lt;/P&gt;&lt;P&gt;I tried lookup() a few years (a few major releases) ago, and at that time it was very expensive and sometimes unstable. I quickly gave up and replaced it completely with mapping, which had proven to be very fast and reliable.&lt;/P&gt;&lt;P&gt;There might have been recent improvements in the performance of a lookup(), but I'd intuitively think that it's always going to be slower than mapping.&lt;/P&gt;&lt;P&gt;just my two cents...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 May 2010 19:07:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Is-lookup-function-expensive/m-p/164471#M37158</guid>
      <dc:creator>Oleg_Troyansky</dc:creator>
      <dc:date>2010-05-25T19:07:53Z</dc:date>
    </item>
    <item>
      <title>Is lookup() function expensive?</title>
      <link>https://community.qlik.com/t5/QlikView/Is-lookup-function-expensive/m-p/164472#M37159</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your response Oleg.&lt;/P&gt;&lt;P&gt;But, my situation here is:&lt;/P&gt;&lt;P&gt;I have a given date - which is considered as the base date.&lt;/P&gt;&lt;P&gt;In the table, I created a combination key of fields - for unique identity.&lt;/P&gt;&lt;P&gt;Now, I should trend only those values, which were present on the base date.&lt;/P&gt;&lt;P&gt;Say 1/1/2010 was the base date and there were 1000 records.&lt;/P&gt;&lt;P&gt;Trend should show only those 1000 records for all the dates. even if some additional records come in they should be ignored.&lt;/P&gt;&lt;P&gt;Let me know if you can think of a possible solution.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 May 2010 19:18:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Is-lookup-function-expensive/m-p/164472#M37159</guid>
      <dc:creator>boorgura</dc:creator>
      <dc:date>2010-05-25T19:18:59Z</dc:date>
    </item>
    <item>
      <title>Is lookup() function expensive?</title>
      <link>https://community.qlik.com/t5/QlikView/Is-lookup-function-expensive/m-p/164473#M37160</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm not sure I totally understand your problem, and how it's related to lookup()...&lt;/P&gt;&lt;P&gt;How do you differentiate your "base" 1000 records from all the others?&lt;/P&gt;&lt;P&gt;Or, maybe let's approach it this way - explain to me how lookup() could solve your problem, and I'll try to assess if there is a better way...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 May 2010 19:22:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Is-lookup-function-expensive/m-p/164473#M37160</guid>
      <dc:creator>Oleg_Troyansky</dc:creator>
      <dc:date>2010-05-25T19:22:22Z</dc:date>
    </item>
    <item>
      <title>Is lookup() function expensive?</title>
      <link>https://community.qlik.com/t5/QlikView/Is-lookup-function-expensive/m-p/164474#M37161</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have created a field s_Key which is a concatenated field - for unique identification.&lt;/P&gt;&lt;P&gt;so now on the base date I have 1000 s_Key values.&lt;/P&gt;&lt;P&gt;So on any other given date, if there is a record which has the s_Key value as one of the above 1000, it should be flagged 'Y' else 'N'.&lt;/P&gt;&lt;P&gt;obviously on the base date, everything will be flagged 'Y'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I created a intermittent resident table with the s_Key, s_Flag and s_Date fields.&lt;/P&gt;&lt;P&gt;and in the final load I used this conditional field:&lt;/P&gt;&lt;P&gt;if(isnull(lookup('Matcher.s_Flag', 'Matcher.s_Key', s_Key, 'Matcher')), 'N', 'Y') as [s_Flag],&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where Matcher is my intermittent Table.&lt;/P&gt;&lt;P&gt;I think i explained a bit better now.&lt;/P&gt;&lt;P&gt;sorry if I messed up!! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 May 2010 19:30:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Is-lookup-function-expensive/m-p/164474#M37161</guid>
      <dc:creator>boorgura</dc:creator>
      <dc:date>2010-05-25T19:30:56Z</dc:date>
    </item>
    <item>
      <title>Is lookup() function expensive?</title>
      <link>https://community.qlik.com/t5/QlikView/Is-lookup-function-expensive/m-p/164475#M37162</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, I think I understand... You can do exactly the same with Mapping:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- create a temporary Mapping table using Mapping load&lt;/P&gt;&lt;P&gt;- Use function ApplyMap() instead of Lookup&lt;/P&gt;&lt;P&gt;- the rest of the logic is exactly the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think you'll find it performaing faster...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 May 2010 22:00:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Is-lookup-function-expensive/m-p/164475#M37162</guid>
      <dc:creator>Oleg_Troyansky</dc:creator>
      <dc:date>2010-05-25T22:00:49Z</dc:date>
    </item>
    <item>
      <title>Is lookup() function expensive?</title>
      <link>https://community.qlik.com/t5/QlikView/Is-lookup-function-expensive/m-p/164476#M37163</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Oleg.&lt;/P&gt;&lt;P&gt;I really appreciate your time.&lt;/P&gt;&lt;P&gt;I will try out this approach first thing tomorrow. and will let you know if it worked or not!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 May 2010 04:17:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Is-lookup-function-expensive/m-p/164476#M37163</guid>
      <dc:creator>boorgura</dc:creator>
      <dc:date>2010-05-26T04:17:22Z</dc:date>
    </item>
  </channel>
</rss>

