<?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: Subtotal on dimension in pivot table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Subtotal-on-dimension-in-pivot-table/m-p/377954#M140925</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;I don't think that it is possible for you to do it exactly that way. As a workaround, perhaps you could consider a separate text box showing the invoiced quantity total.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Aug 2012 11:02:32 GMT</pubDate>
    <dc:creator>jonathandienst</dc:creator>
    <dc:date>2012-08-15T11:02:32Z</dc:date>
    <item>
      <title>Subtotal on dimension in pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Subtotal-on-dimension-in-pivot-table/m-p/377949#M140920</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have the following script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_13450137884132732" jivemacro_uid="_13450137884132732"&gt;&lt;P&gt;Product:&lt;BR /&gt;LOAD * INLINE [&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Product, Invoiced quantity&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Chair', '10'&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Table', '20'&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Closet', '15'&lt;BR /&gt;];&lt;BR /&gt; &lt;/P&gt;&lt;P&gt;Material:&lt;BR /&gt;LOAD * INLINE [&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Product, Material, Used quantity, Uom&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Chair', 'Wood', '1,0', 'm3'&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Chair', 'Fabric', '0,5', 'm2'&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Table', 'Steel', '0,2', 'kg'&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Closet', 'Wood', '2,0', 'm3'&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Closet', 'Plastic', '0,7', 'kg'&lt;BR /&gt;];&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With this I have created a pivot table that looks like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="20209" class="jive-image-thumbnail jive-image" onclick="" alt="UsedMaterial.JPG" src="https://community.qlik.com/legacyfs/online/20209_UsedMaterial.JPG" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This table allows users to see what materials are used in a product and how much of it is used for the invoiced quantity.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have added the Invoiced quantity as a dimension because I do not want it to repeat within each fabric.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is still missing from this table is a total row. I know how to add this using the "Show partial sum" option in the Presentation tab of the table. But this will only give me totals of the expressions. I would also like a total of the Invoiced quantity, which is a dimension.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The following pivot table does have a total for each Used quantity, but not for the Invoiced quantity:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="20213" class="jive-image-thumbnail jive-image" onclick="" alt="UsedMaterialTotal.JPG" src="https://community.qlik.com/legacyfs/online/20213_UsedMaterialTotal.JPG" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way to get the total of the Invoiced quantity on the total line as well?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;The attached file Pivot_total.qvw contains the tables and data used in my question.&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Aug 2012 07:17:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Subtotal-on-dimension-in-pivot-table/m-p/377949#M140920</guid>
      <dc:creator />
      <dc:date>2012-08-15T07:17:17Z</dc:date>
    </item>
    <item>
      <title>Re: Subtotal on dimension in pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Subtotal-on-dimension-in-pivot-table/m-p/377950#M140921</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;covert you pivot to straight table first &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then select invoice expression&amp;gt; Express total or sum of row&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select it &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then again convert it into pivot&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Aug 2012 09:03:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Subtotal-on-dimension-in-pivot-table/m-p/377950#M140921</guid>
      <dc:creator>SunilChauhan</dc:creator>
      <dc:date>2012-08-15T09:03:28Z</dc:date>
    </item>
    <item>
      <title>Re: Subtotal on dimension in pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Subtotal-on-dimension-in-pivot-table/m-p/377951#M140922</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the response Sunil.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't think the solution you are suggesting can work, because my Invoiced quantity is not an expression, but a dimension.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The only reason that I choose it to be a dimension is because I do not want the column repeating itself with each Material.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Aug 2012 09:27:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Subtotal-on-dimension-in-pivot-table/m-p/377951#M140922</guid>
      <dc:creator />
      <dc:date>2012-08-15T09:27:06Z</dc:date>
    </item>
    <item>
      <title>Re: Subtotal on dimension in pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Subtotal-on-dimension-in-pivot-table/m-p/377952#M140923</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;one more way you can try&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;aggr(if (dimensionality()=0,sum(Invoice Quantity),Invoice Quantity),Product) in dimension&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Aug 2012 09:32:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Subtotal-on-dimension-in-pivot-table/m-p/377952#M140923</guid>
      <dc:creator>SunilChauhan</dc:creator>
      <dc:date>2012-08-15T09:32:53Z</dc:date>
    </item>
    <item>
      <title>Re: Subtotal on dimension in pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Subtotal-on-dimension-in-pivot-table/m-p/377953#M140924</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That would add up the Invoiced quantities if there are multiple lines in the Product table of the same product. But this will not give me a total line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to have a total of all of the Invoiced quantities. This column is only a dimension because I only want it to appear ones. It should not repeat itself like the Used quantity does.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Aug 2012 10:01:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Subtotal-on-dimension-in-pivot-table/m-p/377953#M140924</guid>
      <dc:creator />
      <dc:date>2012-08-15T10:01:45Z</dc:date>
    </item>
    <item>
      <title>Re: Subtotal on dimension in pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Subtotal-on-dimension-in-pivot-table/m-p/377954#M140925</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;I don't think that it is possible for you to do it exactly that way. As a workaround, perhaps you could consider a separate text box showing the invoiced quantity total.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Aug 2012 11:02:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Subtotal-on-dimension-in-pivot-table/m-p/377954#M140925</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2012-08-15T11:02:32Z</dc:date>
    </item>
    <item>
      <title>Re: Subtotal on dimension in pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Subtotal-on-dimension-in-pivot-table/m-p/377955#M140926</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That's what I was afraid of. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/sad.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The workaround that you suggest is a good idea. Since my total is on the top I can make it look like the textbox is part of the table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Aug 2012 11:31:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Subtotal-on-dimension-in-pivot-table/m-p/377955#M140926</guid>
      <dc:creator />
      <dc:date>2012-08-15T11:31:17Z</dc:date>
    </item>
  </channel>
</rss>

