<?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: What is the difference btw. Sum(If(expr1, amount, ...)) and If(expr1, Sum(amount), ...) in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/What-is-the-difference-btw-Sum-If-expr1-amount-and-If-expr1-Sum/m-p/1097610#M943195</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't know how to explain, but may be an example might help you understand how they are different.&lt;/P&gt;&lt;P&gt;I have attached an example where there are two cases when the outputs of the two will match and then places where they won't match.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/111809_Capture.PNG" style="height: 163px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am pretty sure that the second expression will never work in a text box object (unless you have used an Aggr() function) because there is no dimension in a text box object.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note: Second and third expressions are essentially almost same&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Sunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 17 Jan 2016 14:37:15 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2016-01-17T14:37:15Z</dc:date>
    <item>
      <title>What is the difference btw. Sum(If(expr1, amount, ...)) and If(expr1, Sum(amount), ...)</title>
      <link>https://community.qlik.com/t5/QlikView/What-is-the-difference-btw-Sum-If-expr1-amount-and-If-expr1-Sum/m-p/1097609#M943194</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm a newbie for QV.&lt;/P&gt;&lt;P&gt;Hope you guys clearify &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;What is the difference btw. Sum(If(condition, amount, ...)) and If(condition, Sum(amount), ...) ?&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 17 Jan 2016 01:25:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/What-is-the-difference-btw-Sum-If-expr1-amount-and-If-expr1-Sum/m-p/1097609#M943194</guid>
      <dc:creator>juntiporn_k</dc:creator>
      <dc:date>2016-01-17T01:25:07Z</dc:date>
    </item>
    <item>
      <title>Re: What is the difference btw. Sum(If(expr1, amount, ...)) and If(expr1, Sum(amount), ...)</title>
      <link>https://community.qlik.com/t5/QlikView/What-is-the-difference-btw-Sum-If-expr1-amount-and-If-expr1-Sum/m-p/1097610#M943195</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't know how to explain, but may be an example might help you understand how they are different.&lt;/P&gt;&lt;P&gt;I have attached an example where there are two cases when the outputs of the two will match and then places where they won't match.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/111809_Capture.PNG" style="height: 163px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am pretty sure that the second expression will never work in a text box object (unless you have used an Aggr() function) because there is no dimension in a text box object.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note: Second and third expressions are essentially almost same&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Sunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 17 Jan 2016 14:37:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/What-is-the-difference-btw-Sum-If-expr1-amount-and-If-expr1-Sum/m-p/1097610#M943195</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-01-17T14:37:15Z</dc:date>
    </item>
    <item>
      <title>Re: What is the difference btw. Sum(If(expr1, amount, ...)) and If(expr1, Sum(amount), ...)</title>
      <link>https://community.qlik.com/t5/QlikView/What-is-the-difference-btw-Sum-If-expr1-amount-and-If-expr1-Sum/m-p/1097611#M943196</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See here: &lt;A href="https://community.qlik.com/message/849846"&gt;Re: Sum(if(...)) vs If(Sum(...), Sum(...))&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 17 Jan 2016 14:44:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/What-is-the-difference-btw-Sum-If-expr1-amount-and-If-expr1-Sum/m-p/1097611#M943196</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2016-01-17T14:44:53Z</dc:date>
    </item>
  </channel>
</rss>

