<?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 Aggr(Rank function help needed:Top 10 &amp;quot;for each Brand&amp;quot; wanted Not Total top 10 in Pivot Table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Aggr-Rank-function-help-needed-Top-10-quot-for-each-Brand-quot/m-p/301452#M111585</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Miguel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I knew i was on the right track but am very new to Aggr and Rank funtions.&amp;nbsp; Thank you for your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This worked perfectly.&amp;nbsp; I know that&amp;nbsp; Top customers, sales, etc come up a lot with in pivot tables so hopefully this can help someone else too.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Joseph&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 29 Sep 2011 17:44:11 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-09-29T17:44:11Z</dc:date>
    <item>
      <title>Aggr(Rank function help needed:Top 10 "for each Brand" wanted Not Total top 10 in Pivot Table</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-Rank-function-help-needed-Top-10-quot-for-each-Brand-quot/m-p/301450#M111583</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Two Brands:&lt;/P&gt;&lt;P&gt;Coke&lt;/P&gt;&lt;P&gt;Pepsi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Each Brand have multiple flavors&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the below aggr(rank formula that gives me Total Top 10 Customer sales&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; but I want Top Ten Customer Sales for Each brand, "Not Total combined top 10"&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;=IF(&lt;/P&gt;&lt;P&gt;aggr(&lt;/P&gt;&lt;P&gt;rank(total &lt;/P&gt;&lt;P&gt;aggr(sum([2011 Sales]),Flavor)&lt;/P&gt;&lt;P&gt;,0,1) &lt;/P&gt;&lt;P&gt;,Flavor)&lt;/P&gt;&lt;P&gt;&amp;lt;=10,&lt;/P&gt;&lt;P&gt;&amp;nbsp; aggr(&lt;/P&gt;&lt;P&gt;rank(total &lt;/P&gt;&lt;P&gt;aggr(sum([2011 Sales]),Flavor)&lt;/P&gt;&lt;P&gt;,0,1) &lt;/P&gt;&lt;P&gt;,Flavor))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If i select a Brand Coke or Pepsi then my Top 10 pivot table recalcuates the Top 10 for the Brand selection (which is what i want to show by default and not have to manually select a brand for a Top 10 by brand to be calculated)..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to display Top 10 for each brand by default, and not have to manually select brand for the Top10 to recalculate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;The attached example is version 10, once opened you will have to turn Web view off,since it is set up to open in webview upon opening.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Once opened, Click View, Turn On/Off Webview&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;attached is an example:&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Sep 2011 16:29:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-Rank-function-help-needed-Top-10-quot-for-each-Brand-quot/m-p/301450#M111583</guid>
      <dc:creator />
      <dc:date>2011-09-29T16:29:25Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr(Rank function help needed:Top 10 "for each Brand" wanted Not Total top 10 in Pivot Table</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-Rank-function-help-needed-Top-10-quot-for-each-Brand-quot/m-p/301451#M111584</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Joseph,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try the following calculated dimension instead, and check the "Suppress When Value Is Null" to avoid results that are not in the top 10 showed with null "No"&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"&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;=&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;If&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;(&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;Aggr&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;(&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;Rank&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;(&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;Aggr&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;(&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;Sum&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;(&lt;/SPAN&gt;[2011 Sales]&lt;SPAN class="s1"&gt;), &lt;/SPAN&gt;Brand&lt;SPAN class="s1"&gt;, &lt;/SPAN&gt;Flavor&lt;SPAN class="s1"&gt;), &lt;/SPAN&gt;&lt;SPAN class="s3"&gt;3&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;, &lt;/SPAN&gt;&lt;SPAN class="s3"&gt;1&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;), &lt;/SPAN&gt;Brand&lt;SPAN class="s1"&gt;, &lt;/SPAN&gt;Flavor&lt;SPAN class="s1"&gt;) &amp;lt;= &lt;/SPAN&gt;&lt;SPAN class="s3"&gt;10&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;,&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;Aggr&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;(&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;Rank&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;(&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;Aggr&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;(&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;Sum&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;(&lt;/SPAN&gt;[2011 Sales]&lt;SPAN class="s1"&gt;), &lt;/SPAN&gt;Brand&lt;SPAN class="s1"&gt;, &lt;/SPAN&gt;Flavor&lt;SPAN class="s1"&gt;), &lt;/SPAN&gt;&lt;SPAN class="s3"&gt;3&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;, &lt;/SPAN&gt;&lt;SPAN class="s3"&gt;1&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;), &lt;/SPAN&gt;Brand&lt;SPAN class="s1"&gt;, &lt;/SPAN&gt;Flavor&lt;SPAN class="s1"&gt;)&lt;BR /&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that was what you were looking for.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/people/mabaeyens" style="font-size: 12px; outline-style: none; padding-top: 1px; padding-bottom: 1px; padding-left: 17px; color: #007fc0; zoom: 1; background-position: no-repeat no-repeat;"&gt;Miguel Angel Baeyens&lt;/A&gt;&lt;/P&gt;&lt;P&gt;BI Consultant&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://www.grupocomex.com/" style="font-size: 12px; outline-style: none; color: #007fc0;"&gt;Comex Grupo Ibérica&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Sep 2011 17:26:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-Rank-function-help-needed-Top-10-quot-for-each-Brand-quot/m-p/301451#M111584</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2011-09-29T17:26:02Z</dc:date>
    </item>
    <item>
      <title>Aggr(Rank function help needed:Top 10 "for each Brand" wanted Not Total top 10 in Pivot Table</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-Rank-function-help-needed-Top-10-quot-for-each-Brand-quot/m-p/301452#M111585</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Miguel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I knew i was on the right track but am very new to Aggr and Rank funtions.&amp;nbsp; Thank you for your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This worked perfectly.&amp;nbsp; I know that&amp;nbsp; Top customers, sales, etc come up a lot with in pivot tables so hopefully this can help someone else too.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Joseph&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Sep 2011 17:44:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-Rank-function-help-needed-Top-10-quot-for-each-Brand-quot/m-p/301452#M111585</guid>
      <dc:creator />
      <dc:date>2011-09-29T17:44:11Z</dc:date>
    </item>
    <item>
      <title>Aggr(Rank function help needed:Top 10 "for each Brand" wanted Not Total top 10 in Pivot Table</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-Rank-function-help-needed-Top-10-quot-for-each-Brand-quot/m-p/301453#M111586</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Miguel this worked great, for what does the 3 represent and what does the 1 represent?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jan 2012 23:59:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-Rank-function-help-needed-Top-10-quot-for-each-Brand-quot/m-p/301453#M111586</guid>
      <dc:creator />
      <dc:date>2012-01-20T23:59:03Z</dc:date>
    </item>
    <item>
      <title>Aggr(Rank function help needed:Top 10 "for each Brand" wanted Not Total top 10 in Pivot Table</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-Rank-function-help-needed-Top-10-quot-for-each-Brand-quot/m-p/301454#M111587</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's parameters&amp;nbsp; from the rank function to treat&amp;nbsp; the equal item. &lt;/P&gt;&lt;P&gt;How to calculate all the equal ?&lt;/P&gt;&lt;P&gt;How to&amp;nbsp; display ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Look at the help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;JJ&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 21 Jan 2012 08:28:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-Rank-function-help-needed-Top-10-quot-for-each-Brand-quot/m-p/301454#M111587</guid>
      <dc:creator />
      <dc:date>2012-01-21T08:28:59Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr(Rank function help needed:Top 10 "for each Brand" wanted Not Total top 10 in Pivot Table</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-Rank-function-help-needed-Top-10-quot-for-each-Brand-quot/m-p/301455#M111588</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks so much for this. It has helped me so much.&lt;/P&gt;&lt;P&gt;I know this post is old, so not sure if you can still help me.&lt;/P&gt;&lt;P&gt;I want to use set analysis to exclude selections, but it doesn't seem to work in the calculated dimension for the rank. &lt;/P&gt;&lt;P&gt;I just added the {1} but it only brings back whatever my selections are. Is there something else I should be doing?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=If(Aggr(Rank(Aggr(Sum({1}[2011 Sales]), Brand, Flavor), 3, 1), Brand, Flavor) &amp;lt;= 10,&amp;nbsp; &lt;/P&gt;&lt;P&gt;Aggr(Rank(Aggr(Sum({1}[2011 Sales]), Brand, Flavor), 3, 1), Brand, Flavor)&amp;nbsp; &lt;/P&gt;&lt;P&gt;)&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Mar 2018 10:04:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-Rank-function-help-needed-Top-10-quot-for-each-Brand-quot/m-p/301455#M111588</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-03-02T10:04:56Z</dc:date>
    </item>
  </channel>
</rss>

