<?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 Set Analysis - Performance Issue in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Performance-Issue/m-p/258736#M97698</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;I have a straight table where I have about 7 expressions. I converted the expressions from normal if statements to if's with set expressions. The values appear correct, the filtering works fine. The only issue is performance. It seems when run side by side the converted expressions (set expressions) take noticably longer to refresh than the plain if statement expressions. Is there something wrong with the logic I use or is this an inappropriate use of Set Analysis?&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;Samples are as follows:&lt;/DIV&gt;&lt;DIV&gt;Original Expression:&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="MsoNormal" style="margin: 0in 0in 10pt; line-height: normal; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"&gt;&lt;SPAN style=": ; color: #000000; font-size: 12pt; Times New Roman&amp;amp;quot: ; mso-ansi-language: EN; font-family: &amp;amp;quot; serif&amp;amp;quot: ; ,&amp;amp;quot: ; mso-fareast-font-family: &amp;amp;quot;"&gt;Sum(IF([Field1] = ‘Var1’, [SomeSales], [SomeOtherSales]))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; "Converted" Expression:&lt;DIV class="MsoNormal" style="margin: 0in 0in 10pt; line-height: normal; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"&gt;&lt;SPAN lang="EN" style="font-family: &amp;amp;quot;Times New Roman&amp;amp;quot;,&amp;amp;quot;serif&amp;amp;quot;; font-size: 12pt; mso-fareast-font-family: &amp;amp;quot;Times New Roman&amp;amp;quot;; mso-ansi-language: EN;"&gt;If([Field1] = 'Var1', &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV class="MsoNormal" style="margin: 0in 0in 10pt; line-height: normal; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"&gt;&lt;SPAN lang="EN" style="font-family: &amp;amp;quot;Times New Roman&amp;amp;quot;,&amp;amp;quot;serif&amp;amp;quot;; font-size: 12pt; mso-fareast-font-family: &amp;amp;quot;Times New Roman&amp;amp;quot;; mso-ansi-language: EN;"&gt;Sum({$&amp;lt;Field1 = {Var1'}&amp;gt;} [SomeSales]), &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV class="MsoNormal" style="margin: 0in 0in 10pt; line-height: normal; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"&gt;&lt;SPAN lang="EN" style="font-family: &amp;amp;quot;Times New Roman&amp;amp;quot;,&amp;amp;quot;serif&amp;amp;quot;; font-size: 12pt; mso-fareast-font-family: &amp;amp;quot;Times New Roman&amp;amp;quot;; mso-ansi-language: EN;"&gt;Sum({$&amp;lt;Field1 = {'Var2'}&amp;gt;} [SomeOtherSales]))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 14 Sep 2011 02:52:22 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-09-14T02:52:22Z</dc:date>
    <item>
      <title>Set Analysis - Performance Issue</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Performance-Issue/m-p/258736#M97698</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;I have a straight table where I have about 7 expressions. I converted the expressions from normal if statements to if's with set expressions. The values appear correct, the filtering works fine. The only issue is performance. It seems when run side by side the converted expressions (set expressions) take noticably longer to refresh than the plain if statement expressions. Is there something wrong with the logic I use or is this an inappropriate use of Set Analysis?&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;Samples are as follows:&lt;/DIV&gt;&lt;DIV&gt;Original Expression:&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="MsoNormal" style="margin: 0in 0in 10pt; line-height: normal; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"&gt;&lt;SPAN style=": ; color: #000000; font-size: 12pt; Times New Roman&amp;amp;quot: ; mso-ansi-language: EN; font-family: &amp;amp;quot; serif&amp;amp;quot: ; ,&amp;amp;quot: ; mso-fareast-font-family: &amp;amp;quot;"&gt;Sum(IF([Field1] = ‘Var1’, [SomeSales], [SomeOtherSales]))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; "Converted" Expression:&lt;DIV class="MsoNormal" style="margin: 0in 0in 10pt; line-height: normal; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"&gt;&lt;SPAN lang="EN" style="font-family: &amp;amp;quot;Times New Roman&amp;amp;quot;,&amp;amp;quot;serif&amp;amp;quot;; font-size: 12pt; mso-fareast-font-family: &amp;amp;quot;Times New Roman&amp;amp;quot;; mso-ansi-language: EN;"&gt;If([Field1] = 'Var1', &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV class="MsoNormal" style="margin: 0in 0in 10pt; line-height: normal; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"&gt;&lt;SPAN lang="EN" style="font-family: &amp;amp;quot;Times New Roman&amp;amp;quot;,&amp;amp;quot;serif&amp;amp;quot;; font-size: 12pt; mso-fareast-font-family: &amp;amp;quot;Times New Roman&amp;amp;quot;; mso-ansi-language: EN;"&gt;Sum({$&amp;lt;Field1 = {Var1'}&amp;gt;} [SomeSales]), &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV class="MsoNormal" style="margin: 0in 0in 10pt; line-height: normal; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"&gt;&lt;SPAN lang="EN" style="font-family: &amp;amp;quot;Times New Roman&amp;amp;quot;,&amp;amp;quot;serif&amp;amp;quot;; font-size: 12pt; mso-fareast-font-family: &amp;amp;quot;Times New Roman&amp;amp;quot;; mso-ansi-language: EN;"&gt;Sum({$&amp;lt;Field1 = {'Var2'}&amp;gt;} [SomeOtherSales]))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Sep 2011 02:52:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Performance-Issue/m-p/258736#M97698</guid>
      <dc:creator />
      <dc:date>2011-09-14T02:52:22Z</dc:date>
    </item>
    <item>
      <title>Set Analysis - Performance Issue</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Performance-Issue/m-p/258737#M97699</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; First thing i would like to tell you that, the use of setanalysis is not proper. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN" style="font-size: 12pt;"&gt;Sum({$&amp;lt;Field1 = {Var1'}&amp;gt;} [SomeSales]), &lt;/SPAN&gt; this expression itself contains the if statement. Meaning it will give you sum of SomeSales only if Field1 = Var1. So it will be purly for Var1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Now as far as performance is concerned the 'if' within sum() takes less time to calculate then sum() in if statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Thus your converted expression takes more time to calculate then your first expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Hope you understood.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kaushik Solanki&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Sep 2011 06:13:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Performance-Issue/m-p/258737#M97699</guid>
      <dc:creator>kaushiknsolanki</dc:creator>
      <dc:date>2011-09-14T06:13:00Z</dc:date>
    </item>
  </channel>
</rss>

