<?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 Sum problem in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Sum-problem/m-p/194202#M55195</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Hello,&lt;BR /&gt;I have the following problem with this expression:&lt;/P&gt;&lt;H4&gt;&lt;IMG alt="error loading image" class="jive-image error-loading-image" src="https://community.qlik.com/legacyfs/online/-1295_sourceID:1295" /&gt;&lt;/H4&gt;&lt;H4&gt;column 1:&lt;/H4&gt;&lt;H4&gt;=IF ( sum({$&amp;lt;AccountingStateMonth ={1}&amp;gt;} AccountInitalDebit)+ Sum(if(AccountingStateMonth&amp;lt;=Month1,AccountMonthDebit))- sum({$&amp;lt;AccountingStateMonth ={1}&amp;gt;} AccountInitalCredit) - Sum(if(AccountingStateMonth&amp;lt;=Month1,AccountMonthCredit))&amp;gt;0,&lt;BR /&gt; sum({$&amp;lt;AccountingStateMonth ={1}&amp;gt;} AccountInitalDebit)+ Sum(if(AccountingStateMonth&amp;lt;=Month1,AccountMonthDebit))- sum({$&amp;lt;AccountingStateMonth ={1}&amp;gt;} AccountInitalCredit) - Sum(if(AccountingStateMonth&amp;lt;=Month1,AccountMonthCredit)),0)&lt;/H4&gt;&lt;H4&gt;column 2:&lt;/H4&gt;&lt;H4&gt;&lt;/H4&gt;&lt;P&gt;&lt;/P&gt;&lt;H4&gt;=IF ( sum({$&amp;lt;AccountingStateMonth ={1}&amp;gt;} AccountInitalDebit)+ Sum(if(AccountingStateMonth&amp;lt;=Month1,AccountMonthDebit))- sum({$&amp;lt;AccountingStateMonth ={1}&amp;gt;} AccountInitalCredit) - Sum(if(AccountingStateMonth&amp;lt;=Month1,AccountMonthCredit))&amp;gt;0,&lt;BR /&gt; sum({$&amp;lt;AccountingStateMonth ={1}&amp;gt;} AccountInitalDebit)+ Sum(if(AccountingStateMonth&amp;lt;=Month1,AccountMonthDebit))- sum({$&amp;lt;AccountingStateMonth ={1}&amp;gt;} AccountInitalCredit) - Sum(if(AccountingStateMonth&amp;lt;=Month1,AccountMonthCredit)),0)&lt;/H4&gt;&lt;H4&gt;In column 4 i want to divided (column 1/column 2).&lt;/H4&gt;&lt;H4&gt;why the result is 0.&lt;/H4&gt;&lt;H4&gt;&lt;/H4&gt;&lt;H4&gt;Please HELP!&lt;/H4&gt;&lt;H4&gt;IT is very important for me!&lt;/H4&gt;&lt;H4&gt;Daniel&lt;/H4&gt;&lt;H4&gt;&lt;/H4&gt;&lt;H4&gt;&lt;/H4&gt;&lt;H4&gt;&lt;/H4&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 25 Mar 2010 19:34:50 GMT</pubDate>
    <dc:creator>dradoikov</dc:creator>
    <dc:date>2010-03-25T19:34:50Z</dc:date>
    <item>
      <title>Sum problem</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-problem/m-p/194202#M55195</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Hello,&lt;BR /&gt;I have the following problem with this expression:&lt;/P&gt;&lt;H4&gt;&lt;IMG alt="error loading image" class="jive-image error-loading-image" src="https://community.qlik.com/legacyfs/online/-1295_sourceID:1295" /&gt;&lt;/H4&gt;&lt;H4&gt;column 1:&lt;/H4&gt;&lt;H4&gt;=IF ( sum({$&amp;lt;AccountingStateMonth ={1}&amp;gt;} AccountInitalDebit)+ Sum(if(AccountingStateMonth&amp;lt;=Month1,AccountMonthDebit))- sum({$&amp;lt;AccountingStateMonth ={1}&amp;gt;} AccountInitalCredit) - Sum(if(AccountingStateMonth&amp;lt;=Month1,AccountMonthCredit))&amp;gt;0,&lt;BR /&gt; sum({$&amp;lt;AccountingStateMonth ={1}&amp;gt;} AccountInitalDebit)+ Sum(if(AccountingStateMonth&amp;lt;=Month1,AccountMonthDebit))- sum({$&amp;lt;AccountingStateMonth ={1}&amp;gt;} AccountInitalCredit) - Sum(if(AccountingStateMonth&amp;lt;=Month1,AccountMonthCredit)),0)&lt;/H4&gt;&lt;H4&gt;column 2:&lt;/H4&gt;&lt;H4&gt;&lt;/H4&gt;&lt;P&gt;&lt;/P&gt;&lt;H4&gt;=IF ( sum({$&amp;lt;AccountingStateMonth ={1}&amp;gt;} AccountInitalDebit)+ Sum(if(AccountingStateMonth&amp;lt;=Month1,AccountMonthDebit))- sum({$&amp;lt;AccountingStateMonth ={1}&amp;gt;} AccountInitalCredit) - Sum(if(AccountingStateMonth&amp;lt;=Month1,AccountMonthCredit))&amp;gt;0,&lt;BR /&gt; sum({$&amp;lt;AccountingStateMonth ={1}&amp;gt;} AccountInitalDebit)+ Sum(if(AccountingStateMonth&amp;lt;=Month1,AccountMonthDebit))- sum({$&amp;lt;AccountingStateMonth ={1}&amp;gt;} AccountInitalCredit) - Sum(if(AccountingStateMonth&amp;lt;=Month1,AccountMonthCredit)),0)&lt;/H4&gt;&lt;H4&gt;In column 4 i want to divided (column 1/column 2).&lt;/H4&gt;&lt;H4&gt;why the result is 0.&lt;/H4&gt;&lt;H4&gt;&lt;/H4&gt;&lt;H4&gt;Please HELP!&lt;/H4&gt;&lt;H4&gt;IT is very important for me!&lt;/H4&gt;&lt;H4&gt;Daniel&lt;/H4&gt;&lt;H4&gt;&lt;/H4&gt;&lt;H4&gt;&lt;/H4&gt;&lt;H4&gt;&lt;/H4&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Mar 2010 19:34:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-problem/m-p/194202#M55195</guid>
      <dc:creator>dradoikov</dc:creator>
      <dc:date>2010-03-25T19:34:50Z</dc:date>
    </item>
    <item>
      <title>Sum problem</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-problem/m-p/194203#M55196</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;would be easier if you could post a sample...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Mar 2010 00:08:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-problem/m-p/194203#M55196</guid>
      <dc:creator>Oleg_Troyansky</dc:creator>
      <dc:date>2010-03-26T00:08:02Z</dc:date>
    </item>
    <item>
      <title>Sum problem</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-problem/m-p/194204#M55197</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Daniel,&lt;/P&gt;&lt;P&gt;Your question is a bit confusing.&lt;/P&gt;&lt;P&gt;The expression for Column 1 and Column 2 in your post are both the same. I'm guessing though that Column 1 is supposed to show the account balance if it is positive, and 0 if -ve. Column 2 is opposite - show balance if -ve, or 0 if +ve.&lt;/P&gt;&lt;P&gt;If that's the case, either column 1 or column 2 will always be zero. So dividing Column 1 / Column 2 will always return 0.&lt;/P&gt;&lt;P&gt;What are you trying to calculate?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Mar 2010 10:58:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-problem/m-p/194204#M55197</guid>
      <dc:creator>michael_anthony</dc:creator>
      <dc:date>2010-03-26T10:58:37Z</dc:date>
    </item>
  </channel>
</rss>

