<?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 Performance - Set Analysis vs IF Statements in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Performance-Set-Analysis-vs-IF-Statements/m-p/520850#M555807</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; I have a huge reference application that has dashboards for pretty much all areas of our organization. I use this as a validation app to cross check numbers with other apps before releasing. This is one of the first app that I built and used if conditions in the expressions though out. It has 20+ sheets and have many charts in each sheet with multiple expression. Obiviously , the performance is terrible. I was thinking of replacing all the "if statements" with "set analysis".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So my question is , Is it worh spend time converting to "Set Analysis"? Does it improve performance significantly?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example &lt;/P&gt;&lt;P&gt;Form : &lt;/P&gt;&lt;P&gt;sum(if( ORD_STATUS = 'Complete' AND Approval ='Y' AND Type = 'Web Sales',(if(InYear(ORDER_DATE, (today()),-1), AMT)),0))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; To:&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;ORD_STATUS = {'Complete'}, Approval = {'Y'} ,Type = {'Web Sales'}, ORD_YR= {"$(=num(Year(Today(0))-1))"}, &amp;gt;}AMT)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Aji Paul.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 24 Jul 2013 17:35:20 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-07-24T17:35:20Z</dc:date>
    <item>
      <title>Performance - Set Analysis vs IF Statements</title>
      <link>https://community.qlik.com/t5/QlikView/Performance-Set-Analysis-vs-IF-Statements/m-p/520850#M555807</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; I have a huge reference application that has dashboards for pretty much all areas of our organization. I use this as a validation app to cross check numbers with other apps before releasing. This is one of the first app that I built and used if conditions in the expressions though out. It has 20+ sheets and have many charts in each sheet with multiple expression. Obiviously , the performance is terrible. I was thinking of replacing all the "if statements" with "set analysis".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So my question is , Is it worh spend time converting to "Set Analysis"? Does it improve performance significantly?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example &lt;/P&gt;&lt;P&gt;Form : &lt;/P&gt;&lt;P&gt;sum(if( ORD_STATUS = 'Complete' AND Approval ='Y' AND Type = 'Web Sales',(if(InYear(ORDER_DATE, (today()),-1), AMT)),0))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; To:&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;ORD_STATUS = {'Complete'}, Approval = {'Y'} ,Type = {'Web Sales'}, ORD_YR= {"$(=num(Year(Today(0))-1))"}, &amp;gt;}AMT)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Aji Paul.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jul 2013 17:35:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Performance-Set-Analysis-vs-IF-Statements/m-p/520850#M555807</guid>
      <dc:creator />
      <dc:date>2013-07-24T17:35:20Z</dc:date>
    </item>
    <item>
      <title>Re: Performance - Set Analysis vs IF Statements</title>
      <link>https://community.qlik.com/t5/QlikView/Performance-Set-Analysis-vs-IF-Statements/m-p/520851#M555808</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It should improve performance. But significantly? Probably not since it's only one expression in one object. You can try to do some analysis to see which objects take a lot of memory and/or time. See for example this blog post: &lt;A _jive_internal="true" class="font-color-normal" href="https://community.qlik.com/blogs/qlikviewdesignblog/2013/01/28/memory-statistics" style="font-size: 12px; color: #252525;"&gt;Recipe for a Memory Statistics analysis&lt;/A&gt;. Or the &lt;A _jive_internal="true" href="https://community.qlik.com/message/341610"&gt;Document Analyzer&lt;/A&gt; application.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jul 2013 17:49:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Performance-Set-Analysis-vs-IF-Statements/m-p/520851#M555808</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-07-24T17:49:09Z</dc:date>
    </item>
    <item>
      <title>Re: Performance - Set Analysis vs IF Statements</title>
      <link>https://community.qlik.com/t5/QlikView/Performance-Set-Analysis-vs-IF-Statements/m-p/520852#M555809</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In addition, the expressions with SET are not "cacheable".&amp;nbsp; That means, they will be calculated every time.&lt;/P&gt;&lt;P&gt;Besides, it not always possible to use SET expressions in chart because the set is evaluated aginst all data, not per chart dimensions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jul 2013 19:01:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Performance-Set-Analysis-vs-IF-Statements/m-p/520852#M555809</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-07-24T19:01:38Z</dc:date>
    </item>
    <item>
      <title>Re: Performance - Set Analysis vs IF Statements</title>
      <link>https://community.qlik.com/t5/QlikView/Performance-Set-Analysis-vs-IF-Statements/m-p/520853#M555810</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My guess is that the SET version would peform must faster. The SET selection is done once for the whole chart. The IF() evaluates for every row of data. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jul 2013 22:57:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Performance-Set-Analysis-vs-IF-Statements/m-p/520853#M555810</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2013-07-24T22:57:26Z</dc:date>
    </item>
    <item>
      <title>Re: Performance - Set Analysis vs IF Statements</title>
      <link>https://community.qlik.com/t5/QlikView/Performance-Set-Analysis-vs-IF-Statements/m-p/520854#M555811</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rob ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Is there any way you could incorporate the expression CPU toll to your document analyzer ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Aji Paul.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jul 2013 16:23:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Performance-Set-Analysis-vs-IF-Statements/m-p/520854#M555811</guid>
      <dc:creator />
      <dc:date>2013-07-25T16:23:52Z</dc:date>
    </item>
  </channel>
</rss>

