<?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 Problem with if sum in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Problem-with-if-sum/m-p/427213#M486768</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I all&lt;/P&gt;&lt;P&gt;i'm new of qlik if someone help me pleas&lt;/P&gt;&lt;P&gt;I would like have a total amount with&amp;nbsp; condition&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example&lt;/P&gt;&lt;P&gt;Month, Budget, Sales&lt;/P&gt;&lt;P&gt;Gen,100.25&lt;/P&gt;&lt;P&gt;Feb,100,25,&lt;/P&gt;&lt;P&gt;Mar,100,0&lt;/P&gt;&lt;P&gt;Apr,100,0&lt;/P&gt;&lt;P&gt;etc&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The total that i would like obtain is 250.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I used the follow expression but the total that i obtain is 400&amp;nbsp;&amp;nbsp; or 50&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 12pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;if &lt;SPAN style="font-size: 12pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 12pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 12pt;"&gt;Sales&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;)&amp;gt;0,&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 12pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 12pt;"&gt;Sales&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;), &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 12pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 12pt;"&gt;Budget&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;) )&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks&lt;/P&gt;&lt;P&gt;PT&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 11 Mar 2013 09:48:53 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-03-11T09:48:53Z</dc:date>
    <item>
      <title>Problem with if sum</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-if-sum/m-p/427213#M486768</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I all&lt;/P&gt;&lt;P&gt;i'm new of qlik if someone help me pleas&lt;/P&gt;&lt;P&gt;I would like have a total amount with&amp;nbsp; condition&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example&lt;/P&gt;&lt;P&gt;Month, Budget, Sales&lt;/P&gt;&lt;P&gt;Gen,100.25&lt;/P&gt;&lt;P&gt;Feb,100,25,&lt;/P&gt;&lt;P&gt;Mar,100,0&lt;/P&gt;&lt;P&gt;Apr,100,0&lt;/P&gt;&lt;P&gt;etc&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The total that i would like obtain is 250.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I used the follow expression but the total that i obtain is 400&amp;nbsp;&amp;nbsp; or 50&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 12pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;if &lt;SPAN style="font-size: 12pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 12pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 12pt;"&gt;Sales&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;)&amp;gt;0,&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 12pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 12pt;"&gt;Sales&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;), &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 12pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 12pt;"&gt;Budget&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;) )&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks&lt;/P&gt;&lt;P&gt;PT&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Mar 2013 09:48:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-if-sum/m-p/427213#M486768</guid>
      <dc:creator />
      <dc:date>2013-03-11T09:48:53Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with if sum</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-if-sum/m-p/427214#M486769</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try this&lt;/P&gt;&lt;P&gt;if &lt;SPAN style="font-size: 12pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 12pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 12pt;"&gt;Sales&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;)&amp;gt;0,&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 12pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 12pt;"&gt;Sales&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;) + &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 12pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 12pt;"&gt;Budget&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;), &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 12pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 12pt;"&gt;Budget&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt; )&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;hope it helps&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Mar 2013 09:50:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-if-sum/m-p/427214#M486769</guid>
      <dc:creator>alexandros17</dc:creator>
      <dc:date>2013-03-11T09:50:28Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with if sum</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-if-sum/m-p/427215#M486770</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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Use this expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sum(aggr(if(sum(Sales)&amp;gt;0,sum(Sales), sum(Budget)),Mese))&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kaushik Solanki&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Mar 2013 09:53:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-if-sum/m-p/427215#M486770</guid>
      <dc:creator>kaushiknsolanki</dc:creator>
      <dc:date>2013-03-11T09:53:40Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with if sum</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-if-sum/m-p/427216#M486771</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No in this case the total is the sumo of both colums (total 450)&lt;/P&gt;&lt;P&gt;I wold like sum sales if exist otherwise sum budget&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Mar 2013 09:56:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-if-sum/m-p/427216#M486771</guid>
      <dc:creator />
      <dc:date>2013-03-11T09:56:29Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with if sum</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-if-sum/m-p/427217#M486772</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No in this case the total is the sumo of both colums (total 450)&lt;/P&gt;&lt;P&gt;I wold like sum sales if exist otherwise sum budget&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Mar 2013 09:56:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-if-sum/m-p/427217#M486772</guid>
      <dc:creator />
      <dc:date>2013-03-11T09:56:35Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with if sum</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-if-sum/m-p/427218#M486773</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No in this case the total is the sumo of both colums (total 450)&lt;/P&gt;&lt;P&gt;I wold like sum sales if exist otherwise sum budget&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Mar 2013 09:56:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-if-sum/m-p/427218#M486773</guid>
      <dc:creator />
      <dc:date>2013-03-11T09:56:44Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with if sum</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-if-sum/m-p/427219#M486774</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try the one i had shown in above post.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kaushik Solanki&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Mar 2013 09:58:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-if-sum/m-p/427219#M486774</guid>
      <dc:creator>kaushiknsolanki</dc:creator>
      <dc:date>2013-03-11T09:58:17Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with if sum</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-if-sum/m-p/427220#M486775</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Many thanks&lt;/P&gt;&lt;P&gt;now work perfectly&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Mar 2013 09:58:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-if-sum/m-p/427220#M486775</guid>
      <dc:creator />
      <dc:date>2013-03-11T09:58:22Z</dc:date>
    </item>
  </channel>
</rss>

