<?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 Top 20, inside Top 20, inside Top 20 report in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Top-20-inside-Top-20-inside-Top-20-report/m-p/1066788#M356620</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Community,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need your assistance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can we create a Pivot / Straight table, that will display Top20, inside Top20, inside Top20.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The logic is this.&lt;/P&gt;&lt;P&gt;I want to see My Top 20 Sales Reps, For each of these Sales Reps i would like to see Each's Top 20 Customers, For each of these Customers, i would like to see the Top 20 Products that they purchase.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ALL is one Graph (i think a pivot will work best).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is what I've tried, which works.. but i lose formatting.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The expression: &lt;/P&gt;&lt;P&gt;=if(rank(((SUM({$&amp;lt;Stk_ProductName = {'*'}-{'BROKEN PACK CHARGE'},Sales_Year=,SH_TransactionDate={'&amp;gt;=$(vMATTYStart)&amp;lt;=$(vMATTYEnd)'},Sales_Month=,Sales_Day=,Sales_MonthYear=,SH_SellingLoc = {'ULA'},SH_Doc_Index = {'I'}&amp;gt;}(SD_SizeinL)) &lt;/P&gt;&lt;P&gt;- SUM({$&amp;lt;Stk_ProductName = {'*'}-{'BROKEN PACK CHARGE'},Sales_Year=,SH_TransactionDate={'&amp;gt;=$(vMATTYStart)&amp;lt;=$(vMATTYEnd)'},Sales_Month=,Sales_Day=,Sales_MonthYear=,SH_SellingLoc = {'ULA'},SH_Doc_Index = {'J'}&amp;gt;}(SD_SizeinL))) / 9)&lt;/P&gt;&lt;P&gt;,1,1) &lt;STRONG&gt;&amp;lt;= 20&lt;/STRONG&gt;,((SUM({$&amp;lt;Stk_ProductName = {'*'}-{'BROKEN PACK CHARGE'},Sales_Year=,SH_TransactionDate={'&amp;gt;=$(vMATTYStart)&amp;lt;=$(vMATTYEnd)'},Sales_Month=,Sales_Day=,Sales_MonthYear=,SH_SellingLoc = {'ULA'},SH_Doc_Index = {'I'}&amp;gt;}(SD_SizeinL)) &lt;/P&gt;&lt;P&gt;- SUM({$&amp;lt;Stk_ProductName = {'*'}-{'BROKEN PACK CHARGE'},Sales_Year=,SH_TransactionDate={'&amp;gt;=$(vMATTYStart)&amp;lt;=$(vMATTYEnd)'},Sales_Month=,Sales_Day=,Sales_MonthYear=,SH_SellingLoc = {'ULA'},SH_Doc_Index = {'J'}&amp;gt;}(SD_SizeinL))) / 9),0)&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/shocked.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But the logic is, if the rank, after the sum is &amp;lt;= 20, then sum.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I added the RepName, Customer, Product into the Pivot Table. BUT it displays only the top 20, of the dimension next to the expression and then displays ALLLL clients, Not TOP20 only. (see attached)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help will be appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The desired result would be the same as in the Attached, but showing only Top20 Customer, not ALL!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did try to use AGGR on the dimension of Customer, but did't work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; apologies for the HUGE post!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 20 Apr 2016 10:40:52 GMT</pubDate>
    <dc:creator>nico_ilog</dc:creator>
    <dc:date>2016-04-20T10:40:52Z</dc:date>
    <item>
      <title>Top 20, inside Top 20, inside Top 20 report</title>
      <link>https://community.qlik.com/t5/QlikView/Top-20-inside-Top-20-inside-Top-20-report/m-p/1066788#M356620</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Community,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need your assistance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can we create a Pivot / Straight table, that will display Top20, inside Top20, inside Top20.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The logic is this.&lt;/P&gt;&lt;P&gt;I want to see My Top 20 Sales Reps, For each of these Sales Reps i would like to see Each's Top 20 Customers, For each of these Customers, i would like to see the Top 20 Products that they purchase.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ALL is one Graph (i think a pivot will work best).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is what I've tried, which works.. but i lose formatting.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The expression: &lt;/P&gt;&lt;P&gt;=if(rank(((SUM({$&amp;lt;Stk_ProductName = {'*'}-{'BROKEN PACK CHARGE'},Sales_Year=,SH_TransactionDate={'&amp;gt;=$(vMATTYStart)&amp;lt;=$(vMATTYEnd)'},Sales_Month=,Sales_Day=,Sales_MonthYear=,SH_SellingLoc = {'ULA'},SH_Doc_Index = {'I'}&amp;gt;}(SD_SizeinL)) &lt;/P&gt;&lt;P&gt;- SUM({$&amp;lt;Stk_ProductName = {'*'}-{'BROKEN PACK CHARGE'},Sales_Year=,SH_TransactionDate={'&amp;gt;=$(vMATTYStart)&amp;lt;=$(vMATTYEnd)'},Sales_Month=,Sales_Day=,Sales_MonthYear=,SH_SellingLoc = {'ULA'},SH_Doc_Index = {'J'}&amp;gt;}(SD_SizeinL))) / 9)&lt;/P&gt;&lt;P&gt;,1,1) &lt;STRONG&gt;&amp;lt;= 20&lt;/STRONG&gt;,((SUM({$&amp;lt;Stk_ProductName = {'*'}-{'BROKEN PACK CHARGE'},Sales_Year=,SH_TransactionDate={'&amp;gt;=$(vMATTYStart)&amp;lt;=$(vMATTYEnd)'},Sales_Month=,Sales_Day=,Sales_MonthYear=,SH_SellingLoc = {'ULA'},SH_Doc_Index = {'I'}&amp;gt;}(SD_SizeinL)) &lt;/P&gt;&lt;P&gt;- SUM({$&amp;lt;Stk_ProductName = {'*'}-{'BROKEN PACK CHARGE'},Sales_Year=,SH_TransactionDate={'&amp;gt;=$(vMATTYStart)&amp;lt;=$(vMATTYEnd)'},Sales_Month=,Sales_Day=,Sales_MonthYear=,SH_SellingLoc = {'ULA'},SH_Doc_Index = {'J'}&amp;gt;}(SD_SizeinL))) / 9),0)&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/shocked.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But the logic is, if the rank, after the sum is &amp;lt;= 20, then sum.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I added the RepName, Customer, Product into the Pivot Table. BUT it displays only the top 20, of the dimension next to the expression and then displays ALLLL clients, Not TOP20 only. (see attached)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help will be appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The desired result would be the same as in the Attached, but showing only Top20 Customer, not ALL!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did try to use AGGR on the dimension of Customer, but did't work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; apologies for the HUGE post!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Apr 2016 10:40:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Top-20-inside-Top-20-inside-Top-20-report/m-p/1066788#M356620</guid>
      <dc:creator>nico_ilog</dc:creator>
      <dc:date>2016-04-20T10:40:52Z</dc:date>
    </item>
  </channel>
</rss>

