<?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 Efficiency of variables vs repeating expressions in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Efficiency-of-variables-vs-repeating-expressions/m-p/444279#M489032</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Noob question here...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I have multiple sheets/charts that use a common expression, is it more efficient to assign that expression to a variable and then reference the variable in the various sheets/charts than to have the expression repeated over and over in each object? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example if I need to plot:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum(bad_call)/sum(call_count)&amp;nbsp; vs sum(good_call)/sum(call_count)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;would it be better to create vCallCount =sum(call_count) and then plot &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum(bad_call)/vCallCount vs sum(good_call)/vCallCount.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or is QlikView smart enough to recognize multiple instances of sum(call_count) and calculate it once?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Steve&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 17 Dec 2012 18:24:22 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-12-17T18:24:22Z</dc:date>
    <item>
      <title>Efficiency of variables vs repeating expressions</title>
      <link>https://community.qlik.com/t5/QlikView/Efficiency-of-variables-vs-repeating-expressions/m-p/444279#M489032</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Noob question here...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I have multiple sheets/charts that use a common expression, is it more efficient to assign that expression to a variable and then reference the variable in the various sheets/charts than to have the expression repeated over and over in each object? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example if I need to plot:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum(bad_call)/sum(call_count)&amp;nbsp; vs sum(good_call)/sum(call_count)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;would it be better to create vCallCount =sum(call_count) and then plot &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum(bad_call)/vCallCount vs sum(good_call)/vCallCount.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or is QlikView smart enough to recognize multiple instances of sum(call_count) and calculate it once?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Steve&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Dec 2012 18:24:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Efficiency-of-variables-vs-repeating-expressions/m-p/444279#M489032</guid>
      <dc:creator />
      <dc:date>2012-12-17T18:24:22Z</dc:date>
    </item>
    <item>
      <title>Re: Efficiency of variables vs repeating expressions</title>
      <link>https://community.qlik.com/t5/QlikView/Efficiency-of-variables-vs-repeating-expressions/m-p/444280#M489033</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is easier to maintain if you use a variable. But that is the only advantage, because QlikView &lt;EM&gt;&lt;STRONG&gt;is&lt;/STRONG&gt;&lt;/EM&gt; smart enough - in both cases - to recognize multiple instances of the expression. The result will be saved in the cache and re-used for the other instances the same expression. (Given that the data scope is the same).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HIC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Dec 2012 21:37:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Efficiency-of-variables-vs-repeating-expressions/m-p/444280#M489033</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2012-12-17T21:37:43Z</dc:date>
    </item>
  </channel>
</rss>

