<?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 Incorrect multiplication in the pivot table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Incorrect-multiplication-in-the-pivot-table/m-p/1033045#M348567</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Colleagues, good afternoon.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a small problem that I cannot understand and need your advice.&lt;/P&gt;&lt;P&gt;We have a report of distributor sales of our products through their clients. The report shows only the quantity, and to evaluate the sale, we need to multiply the quantity and our prices. Actual prices are pulled from PriceBook, that created during the loading script.&amp;nbsp; The link between the report and the PriceBook through key: product name + date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to create a pivot table that displayed the sales in monetary terms and there is a problem:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Таблица 1.jpg" class="jive-image image-1" height="224" src="/legacyfs/online/121676_Таблица 1.jpg" style="height: 224.085px; width: 768px;" width="768" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I use &lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: blue;"&gt;sum (&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: maroon;"&gt;Quantity * Price&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: blue;"&gt;)&lt;/SPAN&gt;&lt;SPAN lang="EN" style="font-size: 12.0pt; font-family: 'Times New Roman','serif';"&gt;,&lt;/SPAN&gt; it turns out some nonsense (the result in the last column). Prices and the nomenclature are linked correctly, multiplication of columns &lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: maroon;"&gt;Quantity&lt;/SPAN&gt; and &lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: maroon;"&gt;Price&lt;/SPAN&gt; gives the correct result, the formula &lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: blue;"&gt;sum (&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: maroon;"&gt;Quantity&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: blue;"&gt;)&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: maroon;"&gt; * Price&lt;/SPAN&gt;&lt;SPAN lang="EN" style="font-size: 12.0pt; font-family: 'Times New Roman','serif';"&gt;,&lt;/SPAN&gt;&amp;nbsp; also gives the correct result, but it does not show Total when minimized nomenclature.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to make PriceBook based QVD, but the same result. The most interesting, if&amp;nbsp; PriceBook uploaded to Excel file and load back, &lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: blue;"&gt;sum (&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: maroon;"&gt;Quantity * Price&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: blue;"&gt;)&lt;/SPAN&gt;&lt;SPAN lang="EN" style="font-size: 12.0pt; font-family: 'Times New Roman','serif';"&gt;,&lt;/SPAN&gt; gives the correct result:&lt;/P&gt;&lt;P&gt; &lt;IMG alt="Таблица 2.jpg" class="jive-image image-2" height="213" src="/legacyfs/online/121677_Таблица 2.jpg" style="height: 213px; width: 772.281px;" width="772" /&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN&gt;What am I doing wrong?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards, Stark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 14 Apr 2016 11:53:58 GMT</pubDate>
    <dc:creator>stark___</dc:creator>
    <dc:date>2016-04-14T11:53:58Z</dc:date>
    <item>
      <title>Incorrect multiplication in the pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Incorrect-multiplication-in-the-pivot-table/m-p/1033045#M348567</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Colleagues, good afternoon.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a small problem that I cannot understand and need your advice.&lt;/P&gt;&lt;P&gt;We have a report of distributor sales of our products through their clients. The report shows only the quantity, and to evaluate the sale, we need to multiply the quantity and our prices. Actual prices are pulled from PriceBook, that created during the loading script.&amp;nbsp; The link between the report and the PriceBook through key: product name + date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to create a pivot table that displayed the sales in monetary terms and there is a problem:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Таблица 1.jpg" class="jive-image image-1" height="224" src="/legacyfs/online/121676_Таблица 1.jpg" style="height: 224.085px; width: 768px;" width="768" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I use &lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: blue;"&gt;sum (&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: maroon;"&gt;Quantity * Price&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: blue;"&gt;)&lt;/SPAN&gt;&lt;SPAN lang="EN" style="font-size: 12.0pt; font-family: 'Times New Roman','serif';"&gt;,&lt;/SPAN&gt; it turns out some nonsense (the result in the last column). Prices and the nomenclature are linked correctly, multiplication of columns &lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: maroon;"&gt;Quantity&lt;/SPAN&gt; and &lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: maroon;"&gt;Price&lt;/SPAN&gt; gives the correct result, the formula &lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: blue;"&gt;sum (&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: maroon;"&gt;Quantity&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: blue;"&gt;)&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: maroon;"&gt; * Price&lt;/SPAN&gt;&lt;SPAN lang="EN" style="font-size: 12.0pt; font-family: 'Times New Roman','serif';"&gt;,&lt;/SPAN&gt;&amp;nbsp; also gives the correct result, but it does not show Total when minimized nomenclature.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to make PriceBook based QVD, but the same result. The most interesting, if&amp;nbsp; PriceBook uploaded to Excel file and load back, &lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: blue;"&gt;sum (&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: maroon;"&gt;Quantity * Price&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: blue;"&gt;)&lt;/SPAN&gt;&lt;SPAN lang="EN" style="font-size: 12.0pt; font-family: 'Times New Roman','serif';"&gt;,&lt;/SPAN&gt; gives the correct result:&lt;/P&gt;&lt;P&gt; &lt;IMG alt="Таблица 2.jpg" class="jive-image image-2" height="213" src="/legacyfs/online/121677_Таблица 2.jpg" style="height: 213px; width: 772.281px;" width="772" /&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN&gt;What am I doing wrong?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards, Stark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Apr 2016 11:53:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incorrect-multiplication-in-the-pivot-table/m-p/1033045#M348567</guid>
      <dc:creator>stark___</dc:creator>
      <dc:date>2016-04-14T11:53:58Z</dc:date>
    </item>
    <item>
      <title>Re: Incorrect multiplication in the pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Incorrect-multiplication-in-the-pivot-table/m-p/1033046#M348568</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #575757; font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;Try this:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif; font-size: 10pt; color: #575757;"&gt;&lt;SPAN lang="EN-US"&gt;&lt;STRONG&gt;Sum(Aggr(Sum(&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US"&gt;Quantity&lt;/SPAN&gt;&lt;SPAN lang="EN-US"&gt;)&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9pt; font-family: Arial, sans-serif; color: maroon;"&gt;&lt;STRONG style=": ; color: #575757; font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt; * Price, &lt;SPAN style="color: #ff0000;"&gt;AllYourChartDimensionsHere&lt;/SPAN&gt;))&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Make sure to replace &lt;STRONG style=": ; color: #ff0000; font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;AllYourChartDimensionsHere &lt;/STRONG&gt;with all the dimensions you are using in the pivot table separated by comma&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Apr 2016 12:53:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incorrect-multiplication-in-the-pivot-table/m-p/1033046#M348568</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-04-14T12:53:16Z</dc:date>
    </item>
    <item>
      <title>Re: Incorrect multiplication in the pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Incorrect-multiplication-in-the-pivot-table/m-p/1033047#M348569</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Price is not aggregated on the same Level as Quantity, therefore you need to use aggr Down to lowest Level in Your pivot. All value needs an aggregatiojn if you want sum on top in pivot&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Apr 2016 12:59:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incorrect-multiplication-in-the-pivot-table/m-p/1033047#M348569</guid>
      <dc:creator>stabben23</dc:creator>
      <dc:date>2016-04-14T12:59:44Z</dc:date>
    </item>
    <item>
      <title>Re: Incorrect multiplication in the pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Incorrect-multiplication-in-the-pivot-table/m-p/1033048#M348570</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you,Sunny.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your formula works perfect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,Stark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Apr 2016 13:33:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incorrect-multiplication-in-the-pivot-table/m-p/1033048#M348570</guid>
      <dc:creator>stark___</dc:creator>
      <dc:date>2016-04-14T13:33:02Z</dc:date>
    </item>
    <item>
      <title>Re: Incorrect multiplication in the pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Incorrect-multiplication-in-the-pivot-table/m-p/1033049#M348571</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you, Staffan for your reply, but I have other question: why sum(Quantity * Price) works correct without aggregation, if I load PriceBook from Excel file?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards, Stark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Apr 2016 13:39:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incorrect-multiplication-in-the-pivot-table/m-p/1033049#M348571</guid>
      <dc:creator>stark___</dc:creator>
      <dc:date>2016-04-14T13:39:59Z</dc:date>
    </item>
    <item>
      <title>Re: Incorrect multiplication in the pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Incorrect-multiplication-in-the-pivot-table/m-p/1033050#M348572</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Spooky, but maybe Excel do some aggregation for you, never mind if you have correct solution.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Apr 2016 13:55:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incorrect-multiplication-in-the-pivot-table/m-p/1033050#M348572</guid>
      <dc:creator>stabben23</dc:creator>
      <dc:date>2016-04-14T13:55:42Z</dc:date>
    </item>
  </channel>
</rss>

