<?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: Difference between IF condition and Set analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Difference-between-IF-condition-and-Set-analysis/m-p/288720#M107323</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi liron,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; My VMaxyear = Max(Total Year)..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think in this case i should get the same values...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But dnt understanding why the results&amp;nbsp; are different..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Feb 2012 10:14:10 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-02-16T10:14:10Z</dc:date>
    <item>
      <title>Difference between IF condition and Set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Difference-between-IF-condition-and-Set-analysis/m-p/288717#M107320</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;&amp;nbsp;&amp;nbsp;&amp;nbsp; I see different results if I calculate the same expression suing "Set analysis" and :If condition"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For Eg:&lt;/P&gt;&lt;P&gt;IF condition =sum( If(Year=vMaxyear,sales))&lt;/P&gt;&lt;P&gt;Set analysis = sum({&amp;lt; Year={'S(vMaxyear)'}&amp;gt;} Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can someone tell me the reason for the same.. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Feb 2012 09:39:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Difference-between-IF-condition-and-Set-analysis/m-p/288717#M107320</guid>
      <dc:creator />
      <dc:date>2012-02-16T09:39:53Z</dc:date>
    </item>
    <item>
      <title>Difference between IF condition and Set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Difference-between-IF-condition-and-Set-analysis/m-p/288718#M107321</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;Set Analysis Give Unique Value ,and Reduce Memory&lt;/P&gt;&lt;P&gt;but if Condition Some times return&amp;nbsp; Duplicate&amp;nbsp; value&amp;nbsp; and consume more memory.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Perumal A&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Feb 2012 09:45:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Difference-between-IF-condition-and-Set-analysis/m-p/288718#M107321</guid>
      <dc:creator>perumal_41</dc:creator>
      <dc:date>2012-02-16T09:45:17Z</dc:date>
    </item>
    <item>
      <title>Difference between IF condition and Set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Difference-between-IF-condition-and-Set-analysis/m-p/288719#M107322</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; well &lt;/P&gt;&lt;P&gt;set analysis is like making&amp;nbsp; a selection in the model , but the selection is made only in the calculation of the formula&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i.e. the vMaxYear will have the one value to all the calulations of the expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if statement is calculating each row against the vMaxYear,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it seems it should be the same in both cases &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what is the expression of the variable &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Feb 2012 09:57:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Difference-between-IF-condition-and-Set-analysis/m-p/288719#M107322</guid>
      <dc:creator>lironbaram</dc:creator>
      <dc:date>2012-02-16T09:57:57Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between IF condition and Set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Difference-between-IF-condition-and-Set-analysis/m-p/288720#M107323</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi liron,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; My VMaxyear = Max(Total Year)..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think in this case i should get the same values...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But dnt understanding why the results&amp;nbsp; are different..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Feb 2012 10:14:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Difference-between-IF-condition-and-Set-analysis/m-p/288720#M107323</guid>
      <dc:creator />
      <dc:date>2012-02-16T10:14:10Z</dc:date>
    </item>
    <item>
      <title>Difference between IF condition and Set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Difference-between-IF-condition-and-Set-analysis/m-p/288721#M107324</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; &lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="MsoNormal" style="margin: 0cm 0cm 10pt;"&gt;&lt;SPAN style="color: #000000; font-size: 12pt; font-family: Calibri;"&gt;Ideally both are similar in the context you are using… Unless there is data issues (generally it happens in case of Date, where date is captured in Date and Numeric Format both), set analysis needs correct formatting of variables.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="MsoNormal" style="margin: 0cm 0cm 10pt;"&gt;&lt;SPAN style="color: #000000; font-size: 12pt; font-family: Calibri;"&gt;I am different opinion from Perumal, as if statement used correctly are less memory intensive, then set analysis… &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="MsoNormal" style="margin: 0cm 0cm 10pt;"&gt;&lt;SPAN style="color: #000000; font-size: 12pt; font-family: Calibri;"&gt;Ideally, I will look at expression of variable and also look at the data for some anamolies&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="MsoNormal" style="margin: 0cm 0cm 10pt;"&gt;&lt;SPAN style="color: #000000; font-size: 12pt; font-family: Calibri;"&gt;Regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Feb 2012 10:16:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Difference-between-IF-condition-and-Set-analysis/m-p/288721#M107324</guid>
      <dc:creator />
      <dc:date>2012-02-16T10:16:02Z</dc:date>
    </item>
    <item>
      <title>Difference between IF condition and Set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Difference-between-IF-condition-and-Set-analysis/m-p/288722#M107325</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; can you post an example &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Feb 2012 10:20:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Difference-between-IF-condition-and-Set-analysis/m-p/288722#M107325</guid>
      <dc:creator>lironbaram</dc:creator>
      <dc:date>2012-02-16T10:20:10Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between IF condition and Set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Difference-between-IF-condition-and-Set-analysis/m-p/288723#M107326</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kulbir&lt;/P&gt;&lt;P&gt;I have a field called Process date out of which the Date field is being calculated.. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The process date is in the time stamp format.. Would this be a problem???I have pulled only DD/MM/YYYY out of the Process date and created the DATE field...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Feb 2012 10:23:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Difference-between-IF-condition-and-Set-analysis/m-p/288723#M107326</guid>
      <dc:creator />
      <dc:date>2012-02-16T10:23:58Z</dc:date>
    </item>
  </channel>
</rss>

