<?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 Re: Set Analysis performance in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analysis-performance/m-p/1185698#M383689</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey there,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To maximum increase performance do the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the script create a field like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sales + Profit as SalesProfit,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will take less time then using Set Analysis in a expression in any chart. Tipically we want to put the most complex calculations and test in script and then use the least complex code in chart to increase the performance. So by doing the above scripting you'll only need to do a Set Analysis like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Sum({&amp;lt;Year={'2014'},Month={'Jan'}&amp;gt;} SalesProfit)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Doing this is better then any option you've given to us &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/wink.png" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;MB&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 15 Sep 2016 16:59:31 GMT</pubDate>
    <dc:creator>miguelbraga</dc:creator>
    <dc:date>2016-09-15T16:59:31Z</dc:date>
    <item>
      <title>Set Analysis performance</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-performance/m-p/1185696#M383687</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Option 1&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;Year={'2014'},Month={'Jan'}&amp;gt;}Sales+Profit)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Option 2&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Sum({&amp;lt;Year={'2014'},Month={'Jan'}&amp;gt;}Sales)+&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Sum({&amp;lt;Year={'2014'},Month={'Jan'}&amp;gt;}Profit)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please can you let me know whether option 1 or option 2 is better in performance and why&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Sep 2016 12:25:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-performance/m-p/1185696#M383687</guid>
      <dc:creator />
      <dc:date>2016-09-15T12:25:38Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis performance</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-performance/m-p/1185697#M383688</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's always best to run tests on your specific model and data to answer questions like these.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would assume that option 1 is faster, just because it's only using one aggregation and one set analysis, but I could be wrong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The results of both options may differ though, if Sales or Profit field may contain NULL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Sum({&amp;lt;Year={'2014'},Month={'Jan'}&amp;gt;} &lt;STRONG&gt;Rangesum&lt;/STRONG&gt;(Sales,Profit) )&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;to be on the safe side.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Sep 2016 16:53:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-performance/m-p/1185697#M383688</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-09-15T16:53:01Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis performance</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-performance/m-p/1185698#M383689</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey there,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To maximum increase performance do the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the script create a field like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sales + Profit as SalesProfit,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will take less time then using Set Analysis in a expression in any chart. Tipically we want to put the most complex calculations and test in script and then use the least complex code in chart to increase the performance. So by doing the above scripting you'll only need to do a Set Analysis like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Sum({&amp;lt;Year={'2014'},Month={'Jan'}&amp;gt;} SalesProfit)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Doing this is better then any option you've given to us &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/wink.png" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;MB&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Sep 2016 16:59:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-performance/m-p/1185698#M383689</guid>
      <dc:creator>miguelbraga</dc:creator>
      <dc:date>2016-09-15T16:59:31Z</dc:date>
    </item>
  </channel>
</rss>

