<?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 Help with if sum in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Help-with-if-sum/m-p/654282#M239083</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have this expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if (Val='a',Sum(Aggr(if(inv='AR000111',sum(Amount)+ 53165,sum(Amount)),inv))&amp;nbsp; ,sum(Amount_B) ) (Works Fine)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to sum this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum(Aggr(if(inv='AR000112',sum(Amount)+ 55900,sum(Amount)),inv))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried with "AND" and "OR" But is not working.&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, 25 Jul 2014 13:36:25 GMT</pubDate>
    <dc:creator>pgalvezt</dc:creator>
    <dc:date>2014-07-25T13:36:25Z</dc:date>
    <item>
      <title>Help with if sum</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-if-sum/m-p/654282#M239083</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have this expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if (Val='a',Sum(Aggr(if(inv='AR000111',sum(Amount)+ 53165,sum(Amount)),inv))&amp;nbsp; ,sum(Amount_B) ) (Works Fine)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to sum this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum(Aggr(if(inv='AR000112',sum(Amount)+ 55900,sum(Amount)),inv))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried with "AND" and "OR" But is not working.&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, 25 Jul 2014 13:36:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-if-sum/m-p/654282#M239083</guid>
      <dc:creator>pgalvezt</dc:creator>
      <dc:date>2014-07-25T13:36:25Z</dc:date>
    </item>
    <item>
      <title>Re: Help with if sum</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-if-sum/m-p/654283#M239084</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'Helvetica','sans-serif'; color: #3d3d3d; background: white;"&gt;Hi Pablo,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'Helvetica','sans-serif'; color: #3d3d3d; background: white;"&gt;this should do it:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'Helvetica','sans-serif'; color: #3d3d3d; background: white;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'Helvetica','sans-serif'; color: #3d3d3d; background: white;"&gt;=if (Val='a',Sum(Aggr(if(inv='AR000111',sum(Amount)+ 53165,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-left: 70.8pt; text-indent: 35.4pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'Helvetica','sans-serif'; color: #3d3d3d; background: white;"&gt;If(inv='AR000112',sum(Amount)+ 55900,sum(Amount))),inv))&amp;nbsp; ,sum(Amount_B)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-left: 70.8pt; text-indent: 35.4pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'Helvetica','sans-serif'; color: #3d3d3d; background: white;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-left: 70.8pt; text-indent: 35.4pt; text-align: left;"&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'Helvetica','sans-serif'; color: #3d3d3d; background: white;"&gt;Burkhard&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Jul 2014 13:45:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-if-sum/m-p/654283#M239084</guid>
      <dc:creator>veidlburkhard</dc:creator>
      <dc:date>2014-07-25T13:45:25Z</dc:date>
    </item>
    <item>
      <title>Re: Help with if sum</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-if-sum/m-p/654284#M239085</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;AND and OR are boolean operators &lt;SPAN style="text-decoration: underline;"&gt;within&lt;/SPAN&gt; the condition test,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;as BV explains, what you need is the IF - ELSE&amp;nbsp; construct, in QlikView the Else is the comma after the do-this-if-true part of the statement.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Jul 2014 13:52:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-if-sum/m-p/654284#M239085</guid>
      <dc:creator>martynlloyd</dc:creator>
      <dc:date>2014-07-25T13:52:15Z</dc:date>
    </item>
    <item>
      <title>Re: Help with if sum</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-if-sum/m-p/654285#M239086</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Burkhard&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Jul 2014 13:54:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-if-sum/m-p/654285#M239086</guid>
      <dc:creator>pgalvezt</dc:creator>
      <dc:date>2014-07-25T13:54:36Z</dc:date>
    </item>
  </channel>
</rss>

