<?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: Sum(if(...)) vs If(Sum(...), Sum(...)) in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Sum-if-vs-If-Sum-Sum/m-p/971154#M332460</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is a big difference:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=sum(if( Condition, Then, Else))&lt;/P&gt;&lt;P&gt;Here the condition is evaluated on record level, the result of each evaluation is then aggregated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=If( sum(), Then, Else)&lt;/P&gt;&lt;P&gt;Here the aggregation happens first, then the result of the aggregation is used in the condition to decide on Then or Else branch.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 21 Aug 2015 14:58:38 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2015-08-21T14:58:38Z</dc:date>
    <item>
      <title>Sum(if(...)) vs If(Sum(...), Sum(...))</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-if-vs-If-Sum-Sum/m-p/971152#M332458</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there an advantage or difference between using sum(if)) vs if(sum())?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Aug 2015 14:42:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-if-vs-If-Sum-Sum/m-p/971152#M332458</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-08-21T14:42:04Z</dc:date>
    </item>
    <item>
      <title>Re: Sum(if(...)) vs If(Sum(...), Sum(...))</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-if-vs-If-Sum-Sum/m-p/971153#M332459</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes there are differences. If I rembemer correctly has &lt;A href="https://community.qlik.com/qlik-users/4003"&gt;hic&lt;/A&gt;‌ this in one of his blog-postings explained. But better is you forget about it and used instead set analysis, like : sum{&amp;lt; Dimension = {'Some Values'}&amp;gt;} Value)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Aug 2015 14:57:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-if-vs-If-Sum-Sum/m-p/971153#M332459</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2015-08-21T14:57:41Z</dc:date>
    </item>
    <item>
      <title>Re: Sum(if(...)) vs If(Sum(...), Sum(...))</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-if-vs-If-Sum-Sum/m-p/971154#M332460</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is a big difference:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=sum(if( Condition, Then, Else))&lt;/P&gt;&lt;P&gt;Here the condition is evaluated on record level, the result of each evaluation is then aggregated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=If( sum(), Then, Else)&lt;/P&gt;&lt;P&gt;Here the aggregation happens first, then the result of the aggregation is used in the condition to decide on Then or Else branch.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Aug 2015 14:58:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-if-vs-If-Sum-Sum/m-p/971154#M332460</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-08-21T14:58:38Z</dc:date>
    </item>
  </channel>
</rss>

