<?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 Problem on pivot and dimensionality in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Problem-on-pivot-and-dimensionality/m-p/240959#M91413</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi to all,&lt;/P&gt;&lt;P&gt;I have the following scenario:&lt;/P&gt;&lt;P&gt;1 table:&lt;/P&gt;&lt;P&gt;Date, BrickCode, Product, Qty, Value, ProdGroup&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;201004;08010;DURIC;62;882.20;MKT PRODOTTI&lt;/P&gt;&lt;P&gt;201004;08011;DURIC;25;457.39;MKT PRODOTTI&lt;/P&gt;&lt;P&gt;201004;08012;DURIC;42;561.93;MKT PRODOTTI&lt;/P&gt;&lt;P&gt;201004;08101;DURIC;139;1903.17;MKT PRODOTTI&lt;/P&gt;&lt;P&gt;201004;08102;DURIC;87;1329.71;MKT PRODOTTI&lt;/P&gt;&lt;P&gt;201004;08103;DURIC;16;271.55;MKT PRODOTTI&lt;/P&gt;&lt;P&gt;out of this I create right(Date, 2) as M&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2 table:&lt;/P&gt;&lt;P&gt;BrickCode, Aream, SalesRep&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;08010;AA;REP1&lt;/P&gt;&lt;P&gt;08011;AA;REP1&lt;/P&gt;&lt;P&gt;08012;BB;REP2&lt;/P&gt;&lt;P&gt;08101;BB;REP2&lt;/P&gt;&lt;P&gt;08102;CC;REP3&lt;/P&gt;&lt;P&gt;08103;CC;REP3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I have a pivot table with Aream, SalesRep and BrickCode and Product as dimension (the product is the column) and this formula:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(dimensionality()=0, Sum (Value) / sum(TOTAL &amp;lt;M, AREAM&amp;gt; Value),&lt;/P&gt;&lt;P&gt;if(dimensionality()=1, Sum (Value) / sum(TOTAL &amp;lt;M, AREAM&amp;gt; Value),&lt;/P&gt;&lt;P&gt;if(dimensionality()=2, sum (Value) / sum(TOTAL &amp;lt;M, AREAM, SalesRep&amp;gt; Value),&lt;/P&gt;&lt;P&gt;if(dimensionality()=3, sum(Value) / sum(TOTAL &amp;lt;M, AREAM, SalesRep, BrickCode&amp;gt; Value)&lt;/P&gt;&lt;P&gt;))))&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;If I filter by month my formula works fine but if i sort by SaleRep or Product the result of the formula went wrong.&lt;/P&gt;&lt;P&gt;In fact the formula is the value of the whole sales of the product in the period selected divided by the sales for aream, salesrep or brickcode, depending on the level where i'm looking in the pivot table.&lt;/P&gt;&lt;P&gt;What i need to achive is to keep the result that i have without filter on the dimension also if i filter for one rep or one product.&lt;/P&gt;&lt;P&gt;Thank to all for help!&lt;/P&gt;&lt;P&gt;Andrea&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 03 Aug 2010 16:50:51 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-08-03T16:50:51Z</dc:date>
    <item>
      <title>Problem on pivot and dimensionality</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-on-pivot-and-dimensionality/m-p/240959#M91413</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi to all,&lt;/P&gt;&lt;P&gt;I have the following scenario:&lt;/P&gt;&lt;P&gt;1 table:&lt;/P&gt;&lt;P&gt;Date, BrickCode, Product, Qty, Value, ProdGroup&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;201004;08010;DURIC;62;882.20;MKT PRODOTTI&lt;/P&gt;&lt;P&gt;201004;08011;DURIC;25;457.39;MKT PRODOTTI&lt;/P&gt;&lt;P&gt;201004;08012;DURIC;42;561.93;MKT PRODOTTI&lt;/P&gt;&lt;P&gt;201004;08101;DURIC;139;1903.17;MKT PRODOTTI&lt;/P&gt;&lt;P&gt;201004;08102;DURIC;87;1329.71;MKT PRODOTTI&lt;/P&gt;&lt;P&gt;201004;08103;DURIC;16;271.55;MKT PRODOTTI&lt;/P&gt;&lt;P&gt;out of this I create right(Date, 2) as M&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2 table:&lt;/P&gt;&lt;P&gt;BrickCode, Aream, SalesRep&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;08010;AA;REP1&lt;/P&gt;&lt;P&gt;08011;AA;REP1&lt;/P&gt;&lt;P&gt;08012;BB;REP2&lt;/P&gt;&lt;P&gt;08101;BB;REP2&lt;/P&gt;&lt;P&gt;08102;CC;REP3&lt;/P&gt;&lt;P&gt;08103;CC;REP3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I have a pivot table with Aream, SalesRep and BrickCode and Product as dimension (the product is the column) and this formula:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(dimensionality()=0, Sum (Value) / sum(TOTAL &amp;lt;M, AREAM&amp;gt; Value),&lt;/P&gt;&lt;P&gt;if(dimensionality()=1, Sum (Value) / sum(TOTAL &amp;lt;M, AREAM&amp;gt; Value),&lt;/P&gt;&lt;P&gt;if(dimensionality()=2, sum (Value) / sum(TOTAL &amp;lt;M, AREAM, SalesRep&amp;gt; Value),&lt;/P&gt;&lt;P&gt;if(dimensionality()=3, sum(Value) / sum(TOTAL &amp;lt;M, AREAM, SalesRep, BrickCode&amp;gt; Value)&lt;/P&gt;&lt;P&gt;))))&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;If I filter by month my formula works fine but if i sort by SaleRep or Product the result of the formula went wrong.&lt;/P&gt;&lt;P&gt;In fact the formula is the value of the whole sales of the product in the period selected divided by the sales for aream, salesrep or brickcode, depending on the level where i'm looking in the pivot table.&lt;/P&gt;&lt;P&gt;What i need to achive is to keep the result that i have without filter on the dimension also if i filter for one rep or one product.&lt;/P&gt;&lt;P&gt;Thank to all for help!&lt;/P&gt;&lt;P&gt;Andrea&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Aug 2010 16:50:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-on-pivot-and-dimensionality/m-p/240959#M91413</guid>
      <dc:creator />
      <dc:date>2010-08-03T16:50:51Z</dc:date>
    </item>
    <item>
      <title>Problem on pivot and dimensionality</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-on-pivot-and-dimensionality/m-p/240960#M91414</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;any idea?&lt;/P&gt;&lt;P&gt;Andrea&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Aug 2010 12:42:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-on-pivot-and-dimensionality/m-p/240960#M91414</guid>
      <dc:creator />
      <dc:date>2010-08-06T12:42:10Z</dc:date>
    </item>
  </channel>
</rss>

