<?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 a column conditionally in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Sum-a-column-conditionally/m-p/233236#M84773</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;It sounds that you need to check two conditions together . Is it something like- Sum(IF(Gtotal='T1' AND Totals='T1',Debet)), that you want? If not, try to upload a sample data set with desired output mentioned.&lt;/P&gt;&lt;P&gt;Regards, tresesco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 27 Dec 2010 13:11:19 GMT</pubDate>
    <dc:creator>tresB</dc:creator>
    <dc:date>2010-12-27T13:11:19Z</dc:date>
    <item>
      <title>Sum a column conditionally</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-a-column-conditionally/m-p/233233#M84770</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, I am trying to get the following: in a graph report I am showing totals per value of PL, there are 0,1 or more GL account totals for 0,1 or more periods linked to it. Depending on de value in de Totals column I would like to populate a cell. So for example the row where the Gtotal value is set to 'T1' (indicating the total row for T1) I would like to populate the Debet column with the total value of debet where the Totals columns = 'T1'.&lt;/P&gt;&lt;P&gt;I used the following formula:&lt;/P&gt;&lt;P&gt;if ((Gtotal = 'T1'), sum({$&amp;lt;Totals={T1}&amp;gt;}acd_dr_amt),sum(acd_dr_amt))&lt;/P&gt;&lt;P&gt;but sofar no luck in achieving what I want. My guess is that I am missing something, but I cannot get my head around what....&lt;/P&gt;&lt;P&gt;I tried to attach the qvw file to this post but got error messages back. So send me a mail a to get the file mailed directly&lt;BR /&gt;if you want to have a look at it.&lt;/P&gt;&lt;P&gt;Thanks in advance for your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Dec 2010 11:15:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-a-column-conditionally/m-p/233233#M84770</guid>
      <dc:creator>andre_ficken</dc:creator>
      <dc:date>2010-12-27T11:15:16Z</dc:date>
    </item>
    <item>
      <title>Sum a column conditionally</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-a-column-conditionally/m-p/233234#M84771</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anre,&lt;/P&gt;&lt;P&gt;Instead of If(Condition,Sum()) structure use SUM (IF(Condition)) structure.&lt;/P&gt;&lt;P&gt;Regards, tresesco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Dec 2010 11:32:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-a-column-conditionally/m-p/233234#M84771</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2010-12-27T11:32:50Z</dc:date>
    </item>
    <item>
      <title>Sum a column conditionally</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-a-column-conditionally/m-p/233235#M84772</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I understand what you mean, but I need 2 condition tests: condition 1 is the row that holds the total, only for these rows I need to do a sum (Gtotal column value test). The columns that need to be summed hold the appropriate value in the Totals column. When I use the latter part of my posted formula I get what I would expect. The situation that I am trying to resolve is:&lt;/P&gt;&lt;P&gt;When the Gtotal cell for the row holds the value 'T1' if needs to sum the column 'Debet' for all rows where the Totals column holds the value 'T1'.&lt;/P&gt;&lt;P&gt;I hope this makes sense to you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Dec 2010 11:47:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-a-column-conditionally/m-p/233235#M84772</guid>
      <dc:creator>andre_ficken</dc:creator>
      <dc:date>2010-12-27T11:47:46Z</dc:date>
    </item>
    <item>
      <title>Sum a column conditionally</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-a-column-conditionally/m-p/233236#M84773</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;It sounds that you need to check two conditions together . Is it something like- Sum(IF(Gtotal='T1' AND Totals='T1',Debet)), that you want? If not, try to upload a sample data set with desired output mentioned.&lt;/P&gt;&lt;P&gt;Regards, tresesco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Dec 2010 13:11:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-a-column-conditionally/m-p/233236#M84773</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2010-12-27T13:11:19Z</dc:date>
    </item>
    <item>
      <title>Sum a column conditionally</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-a-column-conditionally/m-p/233237#M84774</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;Here is a small example in xls format. The sheet shows my data summed up already.&lt;BR /&gt;I want to get the sum of debet for all rows where the column totals is T1 in the cell D5.&lt;BR /&gt;That is the cell where Gtotal = T1.&lt;/P&gt;&lt;P&gt;Same criteria go for cell D9 for Totals = T2 and D13 for Totals = T3.&lt;/P&gt;&lt;P&gt;A small extra challenge for D14 where the sum for Totals T2, T3 have to go in.&lt;/P&gt;&lt;P&gt;Off course debet is only the start, credit and saldo will have to follow as well as more complex totals.&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Dec 2010 13:39:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-a-column-conditionally/m-p/233237#M84774</guid>
      <dc:creator>andre_ficken</dc:creator>
      <dc:date>2010-12-27T13:39:08Z</dc:date>
    </item>
    <item>
      <title>Sum a column conditionally</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-a-column-conditionally/m-p/233238#M84775</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Andre,&lt;/P&gt;&lt;P&gt;Find the attached application. hope this is what you wanted.&lt;/P&gt;&lt;P&gt;regards, tresesco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Dec 2010 06:33:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-a-column-conditionally/m-p/233238#M84775</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2010-12-28T06:33:05Z</dc:date>
    </item>
    <item>
      <title>Sum a column conditionally</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-a-column-conditionally/m-p/233239#M84776</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi tresesco,&lt;/P&gt;&lt;P&gt;This is indeed the solution. Thanks for your help. I also found that version 10 works differently from 8.52 regarding the datasets. Problems solved now, so I am happy. Thanks again.&lt;/P&gt;&lt;P&gt;André&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Jan 2011 09:31:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-a-column-conditionally/m-p/233239#M84776</guid>
      <dc:creator>andre_ficken</dc:creator>
      <dc:date>2011-01-05T09:31:17Z</dc:date>
    </item>
  </channel>
</rss>

