<?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: If statement vs set analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/If-statement-vs-set-analysis/m-p/591662#M219394</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The most important difference is that set analysis is more quick expecially with complex expressions;&lt;/P&gt;&lt;P&gt;When you write a condition this is more compact and easy to read and to change in future&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 31 Jan 2014 08:01:05 GMT</pubDate>
    <dc:creator>alexandros17</dc:creator>
    <dc:date>2014-01-31T08:01:05Z</dc:date>
    <item>
      <title>If statement vs set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/If-statement-vs-set-analysis/m-p/591661#M219393</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hello All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please tell me difference between if statement and set analysis in qlikview.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Jan 2014 07:51:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-statement-vs-set-analysis/m-p/591661#M219393</guid>
      <dc:creator>deepakqlikview_123</dc:creator>
      <dc:date>2014-01-31T07:51:23Z</dc:date>
    </item>
    <item>
      <title>Re: If statement vs set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/If-statement-vs-set-analysis/m-p/591662#M219394</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The most important difference is that set analysis is more quick expecially with complex expressions;&lt;/P&gt;&lt;P&gt;When you write a condition this is more compact and easy to read and to change in future&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Jan 2014 08:01:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-statement-vs-set-analysis/m-p/591662#M219394</guid>
      <dc:creator>alexandros17</dc:creator>
      <dc:date>2014-01-31T08:01:05Z</dc:date>
    </item>
    <item>
      <title>Re: If statement vs set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/If-statement-vs-set-analysis/m-p/591663#M219395</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Performance wise set is more efficient than if... &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Jan 2014 08:18:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-statement-vs-set-analysis/m-p/591663#M219395</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2014-01-31T08:18:17Z</dc:date>
    </item>
    <item>
      <title>Re: If statement vs set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/If-statement-vs-set-analysis/m-p/591664#M219396</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Set analysis is basically building a filter into an aggregation function. The two following expressions should evaluate to the same:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sum({$&amp;lt;Product={'X'}&amp;gt;} Amount)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sum(If(Product='X', Amount))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Set analysis is always faster. However, Set Analysis is like a selection that is applied &lt;SPAN style="text-decoration: underline;"&gt;&lt;EM&gt;before&lt;/EM&gt;&lt;/SPAN&gt; the aggregation. It cannot have different conditions on different lines in the aggregation. In such a case you need an If().&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;HIC&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Jan 2014 16:39:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-statement-vs-set-analysis/m-p/591664#M219396</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2014-01-31T16:39:57Z</dc:date>
    </item>
    <item>
      <title>Re: If statement vs set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/If-statement-vs-set-analysis/m-p/591665#M219397</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;can you please explain a little bit more on how set analysis is applied &lt;EM style="text-decoration: underline;"&gt;before&lt;/EM&gt; the aggregation and the inhability of having different conditions on different lines? Maybe an example too&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Jul 2017 21:56:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-statement-vs-set-analysis/m-p/591665#M219397</guid>
      <dc:creator />
      <dc:date>2017-07-20T21:56:29Z</dc:date>
    </item>
    <item>
      <title>Re: If statement vs set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/If-statement-vs-set-analysis/m-p/591666#M219398</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin-bottom: .0001pt;"&gt;The SET expression selection is done once for the whole chart.&amp;nbsp; SET version would peform must faster.&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;The IF() evaluates for every row of data.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Jul 2017 03:36:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-statement-vs-set-analysis/m-p/591666#M219398</guid>
      <dc:creator>Nagaraju_KCS</dc:creator>
      <dc:date>2017-07-21T03:36:53Z</dc:date>
    </item>
    <item>
      <title>Re: If statement vs set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/If-statement-vs-set-analysis/m-p/1623034#M445915</link>
      <description>&lt;P&gt;Thanks for the clarification.&lt;/P&gt;&lt;P&gt;What if there are redundant records, would they have the same result too?&lt;/P&gt;</description>
      <pubDate>Thu, 12 Sep 2019 09:05:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-statement-vs-set-analysis/m-p/1623034#M445915</guid>
      <dc:creator>Basel_Alyafi</dc:creator>
      <dc:date>2019-09-12T09:05:00Z</dc:date>
    </item>
  </channel>
</rss>

