<?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 Create own sum in table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Create-own-sum-in-table/m-p/229492#M81391</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I assume that "colour" and "size" are fields, and in this case, dimensions in a pivot table?&lt;/P&gt;&lt;P&gt;On the presentation tab, select "size", checkmark "Show Partial Sums", and enter a "Label for Totals" of SKU TOTAL.&lt;/P&gt;&lt;P&gt;That, of course, won't pay attention to the number that are in a 15 pack. To fix that, first you need to record how many are in each size:&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;Sizes:&lt;BR /&gt;size, number&lt;BR /&gt;S,1&lt;BR /&gt;M,1&lt;BR /&gt;L,1&lt;BR /&gt;15 pack, 15&lt;/P&gt;&lt;P&gt;And then use something like this as your expression instead of a simple sum(stock):&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;if(secondarydimensionality(),sum(stock),sum(stock*number))&lt;/P&gt;&lt;P&gt;Basically, it says to use a different expression for your partial sum (your total column) than you do for the rest of the chart.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 22 Dec 2010 02:38:55 GMT</pubDate>
    <dc:creator>johnw</dc:creator>
    <dc:date>2010-12-22T02:38:55Z</dc:date>
    <item>
      <title>Create own sum in table</title>
      <link>https://community.qlik.com/t5/QlikView/Create-own-sum-in-table/m-p/229491#M81390</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;Is it someone who has a solution to my problem?&lt;/P&gt;&lt;P&gt;I have an item ie. a shirt intemno 1000 with multiple colours and with multiple sizes. The items are also sold and kept in stock as a package.&lt;/P&gt;&lt;P&gt;S M L 15pack SKU TOTAL&lt;/P&gt;&lt;P&gt;Green 10 20 10 1 55&lt;/P&gt;&lt;P&gt;Blue 10 20 10 0 40&lt;/P&gt;&lt;P&gt;How can I create the sum like this?&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Dec 2010 17:04:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-own-sum-in-table/m-p/229491#M81390</guid>
      <dc:creator />
      <dc:date>2010-12-21T17:04:26Z</dc:date>
    </item>
    <item>
      <title>Create own sum in table</title>
      <link>https://community.qlik.com/t5/QlikView/Create-own-sum-in-table/m-p/229492#M81391</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I assume that "colour" and "size" are fields, and in this case, dimensions in a pivot table?&lt;/P&gt;&lt;P&gt;On the presentation tab, select "size", checkmark "Show Partial Sums", and enter a "Label for Totals" of SKU TOTAL.&lt;/P&gt;&lt;P&gt;That, of course, won't pay attention to the number that are in a 15 pack. To fix that, first you need to record how many are in each size:&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;Sizes:&lt;BR /&gt;size, number&lt;BR /&gt;S,1&lt;BR /&gt;M,1&lt;BR /&gt;L,1&lt;BR /&gt;15 pack, 15&lt;/P&gt;&lt;P&gt;And then use something like this as your expression instead of a simple sum(stock):&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;if(secondarydimensionality(),sum(stock),sum(stock*number))&lt;/P&gt;&lt;P&gt;Basically, it says to use a different expression for your partial sum (your total column) than you do for the rest of the chart.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Dec 2010 02:38:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-own-sum-in-table/m-p/229492#M81391</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2010-12-22T02:38:55Z</dc:date>
    </item>
  </channel>
</rss>

