<?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: How to Sum Column(with condition) in Pivot Table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-Sum-Column-with-condition-in-Pivot-Table/m-p/444830#M165929</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try "show partial sums" on the presentation tab, and change dimension to have class first, student after.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That would look like this:&lt;/P&gt;&lt;P&gt;&lt;IMG class="jiveImage" src="https://community.qlik.com/message/353940/" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not sure if that is good enough?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 06 Jun 2013 02:35:30 GMT</pubDate>
    <dc:creator>calvindk</dc:creator>
    <dc:date>2013-06-06T02:35:30Z</dc:date>
    <item>
      <title>How to Sum Column(with condition) in Pivot Table</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Sum-Column-with-condition-in-Pivot-Table/m-p/444829#M165928</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; I've tried to search around this forum but I can't find a solution (or may be I need more detailed guidance) in order to solve my problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Refer to the table below, I would like to get the data in red text.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 376px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" width="143"&gt;Name&lt;/TD&gt;&lt;TD class="xl64" style="border-left: none;" width="64"&gt;Class&lt;/TD&gt;&lt;TD class="xl64" style="border-left: none;" width="77"&gt;Math Score&lt;/TD&gt;&lt;TD class="xl64" style="border-left: none;" width="92"&gt;Science Score&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="border-top: none;"&gt;StudentA&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;B&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;20&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;40&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="border-top: none;"&gt;StudentB&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;D&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;10&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;30&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="border-top: none;"&gt;StudentC&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;B&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;30&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;20&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="border-top: none;"&gt;StudentD&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;D&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;20&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;10&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="border-top: none;"&gt;&lt;SPAN style="color: #ff0000;"&gt;Total Score for Class B&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt; &lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;&lt;SPAN style="color: #ff0000;"&gt;50&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;&lt;SPAN style="color: #ff0000;"&gt;60&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="border-top: none;"&gt;&lt;SPAN style="color: #ff0000;"&gt;Total Score for Class D&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt; &lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;&lt;SPAN style="color: #ff0000;"&gt;30&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;&lt;SPAN style="color: #ff0000;"&gt;40&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I've also attached a sample QV application. Hope someone experienced can show me the changes in the application and re-attach the application.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Thanks in advance and have a nice day.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Jun 2013 02:18:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Sum-Column-with-condition-in-Pivot-Table/m-p/444829#M165928</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-06-06T02:18:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to Sum Column(with condition) in Pivot Table</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Sum-Column-with-condition-in-Pivot-Table/m-p/444830#M165929</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try "show partial sums" on the presentation tab, and change dimension to have class first, student after.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That would look like this:&lt;/P&gt;&lt;P&gt;&lt;IMG class="jiveImage" src="https://community.qlik.com/message/353940/" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not sure if that is good enough?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Jun 2013 02:35:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Sum-Column-with-condition-in-Pivot-Table/m-p/444830#M165929</guid>
      <dc:creator>calvindk</dc:creator>
      <dc:date>2013-06-06T02:35:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to Sum Column(with condition) in Pivot Table</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Sum-Column-with-condition-in-Pivot-Table/m-p/444831#M165930</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A _jive_internal="true" class="jiveTT-hover-user jive-username-link active_link" href="https://community.qlik.com/people/calvindk" id="jive-9914223866098929155619" style="background-color: #ffffff; font-size: 12px; color: #007fc0; font-weight: bold; font-family: Arial; text-align: center;"&gt;Anders Møller,&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I've tried your steps, to show partial sums for 'Class' on the presentation tab, then moved the 'Class' to become the first dimension, but I can't get the same result. Did i left out anything?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Jun 2013 02:45:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Sum-Column-with-condition-in-Pivot-Table/m-p/444831#M165930</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-06-06T02:45:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to Sum Column(with condition) in Pivot Table</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Sum-Column-with-condition-in-Pivot-Table/m-p/444832#M165931</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;Let do this&lt;/P&gt;&lt;P&gt;1. Change expression&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Math Score] to Sum([Math Score])&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Science Score] to Sum([Science Score])&lt;/P&gt;&lt;P&gt;2. Drag [Class] field to first column and [Name] should be second column. Table header like this&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Class&amp;nbsp;&amp;nbsp;&amp;nbsp; Name&amp;nbsp;&amp;nbsp;&amp;nbsp; Sum([Math Score])&amp;nbsp;&amp;nbsp;&amp;nbsp; Sum([Science Score])&lt;/P&gt;&lt;P&gt;3. Goto Presentation -&amp;gt; Select "Name" dimension -&amp;gt; Check Show Partial Sums&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="42183" __jive_id="42183" class="jive-image-thumbnail jive-image" alt="Untitled.png" src="https://community.qlik.com/legacyfs/online/42183_Untitled.png" width="450" /&gt;&lt;/P&gt;&lt;P&gt;See sample attached file&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sokkorn&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Jun 2013 02:49:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Sum-Column-with-condition-in-Pivot-Table/m-p/444832#M165931</guid>
      <dc:creator>Sokkorn</dc:creator>
      <dc:date>2013-06-06T02:49:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to Sum Column(with condition) in Pivot Table</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Sum-Column-with-condition-in-Pivot-Table/m-p/444833#M165932</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A _jive_internal="true" class="jiveTT-hover-user jive-username-link" href="https://community.qlik.com/people/sokkorn.cheav" id="jive-3327223866538050595235" style="background-color: #ffffff; font-size: 12px; color: #007fc0; font-weight: bold; font-family: Arial; text-align: center;"&gt;Sokkorn Cheav (Cambodia)&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Thanks for the prompt reply. It's a good idea. But your solution will give me something like this:&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="403"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl66" height="20" width="64"&gt;Class&lt;/TD&gt;&lt;TD class="xl66" style="border-left: none;" width="170"&gt;Name&lt;/TD&gt;&lt;TD class="xl66" style="border-left: none;" width="77"&gt;Math Score&lt;/TD&gt;&lt;TD class="xl66" style="border-left: none;" width="92"&gt;Science Score&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl71" height="60" rowspan="3" style="border-top: none;"&gt;B&lt;/TD&gt;&lt;TD class="xl68" style="border-top: none; border-left: none;"&gt;StudentA&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;20&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;40&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl68" height="20" style="border-top: none; border-left: none;"&gt;StudentC&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;30&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;20&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl69" height="20" style="border-top: none; border-left: none;"&gt;Total Score for Class B&lt;/TD&gt;&lt;TD align="right" class="xl70" style="border-top: none;"&gt;50&lt;/TD&gt;&lt;TD align="right"&gt;60&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl71" height="60" rowspan="3" style="border-top: none;"&gt;D&lt;/TD&gt;&lt;TD class="xl68" style="border-top: none; border-left: none;"&gt;StudentB&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;10&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-left: none;"&gt;30&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl68" height="20" style="border-top: none; border-left: none;"&gt;StudentD&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;20&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;10&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl69" height="20" style="border-top: none; border-left: none;"&gt;Total Score for Class D&lt;/TD&gt;&lt;TD align="right" class="xl70" style="border-top: none;"&gt;30&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;40&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; But for my case, I need the data to be all sorted by 'Student Name', while the solution that you suggest me is firstly sort by 'Class', then sort of 'Student Name'. I would need something exactly like below (if possible):&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="432"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" width="199"&gt;Name&lt;/TD&gt;&lt;TD class="xl64" style="border-left: none;" width="64"&gt;Class&lt;/TD&gt;&lt;TD class="xl64" style="border-left: none;" width="77"&gt;Math Score&lt;/TD&gt;&lt;TD class="xl64" style="border-left: none;" width="92"&gt;Science Score&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="border-top: none;"&gt;StudentA&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;B&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;20&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;40&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="border-top: none;"&gt;StudentB&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;D&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;10&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;30&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="border-top: none;"&gt;StudentC&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;B&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;30&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;20&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="border-top: none;"&gt;StudentD&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;D&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;20&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;10&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="border-top: none;"&gt;Total Score for Class B&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;50&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;60&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="border-top: none;"&gt;Total Score for Class D&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;30&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;40&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Hope to hear from someone who can help me. Thanks in advance!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Jun 2013 02:54:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Sum-Column-with-condition-in-Pivot-Table/m-p/444833#M165932</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-06-06T02:54:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to Sum Column(with condition) in Pivot Table</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Sum-Column-with-condition-in-Pivot-Table/m-p/444834#M165933</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Hope someone can give me some idea on this question. Your help is greatly appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Jun 2013 06:08:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Sum-Column-with-condition-in-Pivot-Table/m-p/444834#M165933</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-06-06T06:08:26Z</dc:date>
    </item>
    <item>
      <title>Re: Re: How to Sum Column(with condition) in Pivot Table</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Sum-Column-with-condition-in-Pivot-Table/m-p/444835#M165934</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why not create a new expression and add your set analysis. A bit messy but effective.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Oct 2013 08:17:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Sum-Column-with-condition-in-Pivot-Table/m-p/444835#M165934</guid>
      <dc:creator />
      <dc:date>2013-10-08T08:17:52Z</dc:date>
    </item>
  </channel>
</rss>

