<?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: total in pivot in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/total-in-pivot/m-p/457015#M489545</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;Assuming [Codice articolo] is the only dimension on the pivot table:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum(Aggr(Sum([cost]) * sum({$&amp;lt;Importo-={''}&amp;gt;} [Q.tà ord.]), [Codice articolo]))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have typed a ) where there should be comma. If there are other dimensions, add them after [Codice articolo] as a comma separated list.&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>Fri, 26 Oct 2012 12:08:40 GMT</pubDate>
    <dc:creator>jonathandienst</dc:creator>
    <dc:date>2012-10-26T12:08:40Z</dc:date>
    <item>
      <title>total in pivot</title>
      <link>https://community.qlik.com/t5/QlikView/total-in-pivot/m-p/457012#M489542</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;as you can see in the below image, the total in the last column is calulculated by 161*114, not by the sum of 5.459+3.679.&lt;/P&gt;&lt;P&gt;How I can set partial sum as I want?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="24258" class="jive-image-thumbnail jive-image" height="110" alt="Immagine.JPG" src="https://community.qlik.com/legacyfs/online/24258_Immagine.JPG" style="max-width: 1200px; max-height: 900px;" width="793" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Andrea&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Oct 2012 09:16:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/total-in-pivot/m-p/457012#M489542</guid>
      <dc:creator>andyrebs</dc:creator>
      <dc:date>2012-10-26T09:16:32Z</dc:date>
    </item>
    <item>
      <title>Re: total in pivot</title>
      <link>https://community.qlik.com/t5/QlikView/total-in-pivot/m-p/457013#M489543</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;You will need to use an Aggr() expression for your table. It will look something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; =Sum(Aggr(&amp;nbsp; &lt;EM&gt;... your current calculation here ...&lt;/EM&gt; , Dim1, Dim2, Dim3, ...)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; =Sum(Aggr(Sum(Amount * Factor), ClientID))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Insert your current expression in &lt;EM&gt;... your current calculation here ...&lt;/EM&gt; and the pivot table dimensions in Dim1, Dim2, etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Oct 2012 09:29:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/total-in-pivot/m-p/457013#M489543</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2012-10-26T09:29:42Z</dc:date>
    </item>
    <item>
      <title>Re: total in pivot</title>
      <link>https://community.qlik.com/t5/QlikView/total-in-pivot/m-p/457014#M489544</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jonathan,&lt;/P&gt;&lt;P&gt;thanks for your answer.&lt;/P&gt;&lt;P&gt;The expressions in the table are:&lt;/P&gt;&lt;P&gt;Q.tà: sum({$&amp;lt;Importo-={''}&amp;gt;} [Q.tà ord.]) &lt;/P&gt;&lt;P&gt;Ultimo costo: sum([cost])&lt;/P&gt;&lt;P&gt;costo totale: =num(sum([cost])*sum({$&amp;lt;Importo-={''}&amp;gt;} [Q.tà ord.]))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I set the last expression as you suggest&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum (aggr (sum([cost])*sum({$&amp;lt;Importo-={''}&amp;gt;} [Q.tà ord.]) ) [Codice articolo]))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it &lt;SPAN class="short_text" id="result_box" lang="en"&gt;&lt;SPAN class="hps"&gt;returns an error.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Oct 2012 09:49:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/total-in-pivot/m-p/457014#M489544</guid>
      <dc:creator>andyrebs</dc:creator>
      <dc:date>2012-10-26T09:49:16Z</dc:date>
    </item>
    <item>
      <title>Re: total in pivot</title>
      <link>https://community.qlik.com/t5/QlikView/total-in-pivot/m-p/457015#M489545</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;Assuming [Codice articolo] is the only dimension on the pivot table:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum(Aggr(Sum([cost]) * sum({$&amp;lt;Importo-={''}&amp;gt;} [Q.tà ord.]), [Codice articolo]))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have typed a ) where there should be comma. If there are other dimensions, add them after [Codice articolo] as a comma separated list.&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>Fri, 26 Oct 2012 12:08:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/total-in-pivot/m-p/457015#M489545</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2012-10-26T12:08:40Z</dc:date>
    </item>
    <item>
      <title>Re: total in pivot</title>
      <link>https://community.qlik.com/t5/QlikView/total-in-pivot/m-p/457016#M489546</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Many thanks Jonahtan!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Oct 2012 12:22:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/total-in-pivot/m-p/457016#M489546</guid>
      <dc:creator>andyrebs</dc:creator>
      <dc:date>2012-10-26T12:22:30Z</dc:date>
    </item>
  </channel>
</rss>

