<?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 and SET expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Difference-between-IF-and-SET-expression/m-p/466474#M174329</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for you input.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But are these two expression same in terms of output?&lt;/P&gt;&lt;P&gt;Or I am missing something in set expression?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please advise.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TA&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 27 Dec 2012 13:52:07 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-12-27T13:52:07Z</dc:date>
    <item>
      <title>Difference between IF and SET expression</title>
      <link>https://community.qlik.com/t5/QlikView/Difference-between-IF-and-SET-expression/m-p/466471#M174326</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can some one explain if there is any difference between these two expressions? One is developed with IF logic and one with SET.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression with SET:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SUM ({&amp;lt;[IDEN PV 1WK] = {"$(vPVLastWeekHL1Combined)"}&amp;gt; * &lt;/P&gt;&lt;P&gt;$&amp;lt;[IDEN PV 4WKS] = {"$(vPVLast4WeeksHL1Combined)"}&amp;gt; * &lt;/P&gt;&lt;P&gt;$&amp;lt;[IDEN SM HPW 1WK] = {"$(vHPWLastWeekHL1Combined)"}&amp;gt; * &lt;/P&gt;&lt;P&gt;$&amp;lt;[IDEN SM HPW 4WKS] = {"$(vHPWLast4WeeksHL1Combined)"}&amp;gt; * &lt;/P&gt;&lt;P&gt;$&amp;lt;[MKT Email Received 12WKS Count] = {"$(vEmailReceivedLast12WeeksHL1Combined)"}&amp;gt;} [IDEN PV 1WK]) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression with IF:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=If(Sum ([IDEN PV 1WK])$(vPVLastWeekHL1Combined) And &lt;/P&gt;&lt;P&gt;(Sum ([IDEN PV 4WKS])$(vPVLast4WeeksHL1Combined)And&lt;/P&gt;&lt;P&gt;(Sum ([IDEN SM HPW 1WK])$(vHPWLastWeekHL1Combined) And &lt;/P&gt;&lt;P&gt;(Sum ([IDEN SM HPW 4WKS])$(vHPWLast4WeeksHL1Combined)And&lt;/P&gt;&lt;P&gt;(Avg ([MKT Email Received 12WKS Count])$(vEmailReceivedLast12WeeksHL1Combined)))))&lt;/P&gt;&lt;P&gt;Sum ([IDEN PV 1WK]))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And which one will do fast calculation and generate report?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please advise?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TA&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Dec 2012 21:04:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Difference-between-IF-and-SET-expression/m-p/466471#M174326</guid>
      <dc:creator />
      <dc:date>2012-12-26T21:04:33Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between IF and SET expression</title>
      <link>https://community.qlik.com/t5/QlikView/Difference-between-IF-and-SET-expression/m-p/466472#M174327</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;Can some one please give some expert advise about above post?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TA&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Dec 2012 11:10:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Difference-between-IF-and-SET-expression/m-p/466472#M174327</guid>
      <dc:creator />
      <dc:date>2012-12-27T11:10:01Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between IF and SET expression</title>
      <link>https://community.qlik.com/t5/QlikView/Difference-between-IF-and-SET-expression/m-p/466473#M174328</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Always use set analysis when possible. It is highly efficient compared to IF statements. There are situations where you need to use an IF statement, though. Thats really all you need to know as long as the above equations work for you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Dec 2012 12:38:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Difference-between-IF-and-SET-expression/m-p/466473#M174328</guid>
      <dc:creator />
      <dc:date>2012-12-27T12:38:01Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between IF and SET expression</title>
      <link>https://community.qlik.com/t5/QlikView/Difference-between-IF-and-SET-expression/m-p/466474#M174329</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for you input.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But are these two expression same in terms of output?&lt;/P&gt;&lt;P&gt;Or I am missing something in set expression?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please advise.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TA&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Dec 2012 13:52:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Difference-between-IF-and-SET-expression/m-p/466474#M174329</guid>
      <dc:creator />
      <dc:date>2012-12-27T13:52:07Z</dc:date>
    </item>
  </channel>
</rss>

