<?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: Aggr &amp; Rank in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Aggr-Rank/m-p/513444#M191844</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 should use the set analysis lke :&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;= &lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;FABRICANT_LName&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;= {&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"=rank(sum([Ventes Unite]), 4)&amp;lt;= 10"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;}&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Ventes Unite]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;where : FABRICANT_LNAME is the dimension, and Ventes Unite the value sales I want to sum. Here I want to sum up the first 10 manufacturers (Fabricant in french)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;if you need to the ranking on a specific period, you should insert a set analysis inside the the rank itself:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;= &lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;FABRICANT_LName&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;= {&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"=rank(sum( {&amp;lt;Year={2103}&amp;gt;}&amp;nbsp; [Ventes Unite]), 4)&amp;lt;= 10"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;}&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Ventes Unite]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Fabrice&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 04 Oct 2013 12:58:38 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-10-04T12:58:38Z</dc:date>
    <item>
      <title>Aggr &amp; Rank</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-Rank/m-p/513442#M191842</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is wrong in below code... My idea is to get TOTAL QTY for TOP 10 Customer...but I am not getting any result&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=SUM(IF(AGGR(RANK(SUM([Inv QTY])),[Customer Name])&amp;lt;=10,SUM([Inv QTY])))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Oct 2013 12:34:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-Rank/m-p/513442#M191842</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2013-10-04T12:34:01Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr &amp; Rank</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-Rank/m-p/513443#M191843</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;if you are using Straight table, you can use Dimension limits to get it, very simple..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Oct 2013 12:49:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-Rank/m-p/513443#M191843</guid>
      <dc:creator>israrkhan</dc:creator>
      <dc:date>2013-10-04T12:49:04Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr &amp; Rank</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-Rank/m-p/513444#M191844</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 should use the set analysis lke :&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;= &lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;FABRICANT_LName&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;= {&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"=rank(sum([Ventes Unite]), 4)&amp;lt;= 10"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;}&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Ventes Unite]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;where : FABRICANT_LNAME is the dimension, and Ventes Unite the value sales I want to sum. Here I want to sum up the first 10 manufacturers (Fabricant in french)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;if you need to the ranking on a specific period, you should insert a set analysis inside the the rank itself:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;= &lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;FABRICANT_LName&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;= {&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"=rank(sum( {&amp;lt;Year={2103}&amp;gt;}&amp;nbsp; [Ventes Unite]), 4)&amp;lt;= 10"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;}&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Ventes Unite]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Fabrice&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Oct 2013 12:58:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-Rank/m-p/513444#M191844</guid>
      <dc:creator />
      <dc:date>2013-10-04T12:58:38Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr &amp; Rank</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-Rank/m-p/513445#M191845</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This total I want in text box...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Oct 2013 13:10:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-Rank/m-p/513445#M191845</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2013-10-04T13:10:36Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr &amp; Rank</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-Rank/m-p/513446#M191846</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;of course&lt;/P&gt;&lt;P&gt;it works in a textbox&lt;/P&gt;&lt;P&gt;just adapt the dimension name and the expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fabrice&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Oct 2013 13:15:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-Rank/m-p/513446#M191846</guid>
      <dc:creator />
      <dc:date>2013-10-04T13:15:00Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr &amp; Rank</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-Rank/m-p/513447#M191847</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try like in textbox,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Sum({&amp;lt;[Customer Name]={"=rank(Aggr(sum([Inv QTY]),[Customer Name]),4)&amp;lt;=10"} &amp;gt;}[Inv QTY])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Oct 2013 13:22:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-Rank/m-p/513447#M191847</guid>
      <dc:creator>v_iyyappan</dc:creator>
      <dc:date>2013-10-04T13:22:30Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr &amp; Rank</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-Rank/m-p/513448#M191848</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try this, its working with me...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;= Sum({&amp;lt;CompanyName = {"=rank(sum(Quantity))&amp;lt;= 5"}&amp;gt;} Quantity)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Contact name is my dimension. &lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Oct 2013 13:35:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-Rank/m-p/513448#M191848</guid>
      <dc:creator>israrkhan</dc:creator>
      <dc:date>2013-10-04T13:35:03Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr &amp; Rank</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-Rank/m-p/513449#M191849</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;I will try&lt;/P&gt;&lt;P&gt;=if(aggr(rank(sum([Inv QTY])),[Customer Name])&amp;lt;=10,Sum([Inv QTY],"Other&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;")&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this is helpful&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Gabriel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Oct 2013 13:42:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-Rank/m-p/513449#M191849</guid>
      <dc:creator>Gabriel</dc:creator>
      <dc:date>2013-10-04T13:42:59Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr &amp; Rank</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-Rank/m-p/513450#M191850</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is 4 stand for ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Oct 2013 14:59:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-Rank/m-p/513450#M191850</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2013-10-04T14:59:44Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr &amp; Rank</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-Rank/m-p/513451#M191851</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Done myself... Thanks to everyone for your help...!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=SUM({&amp;lt;[Customer Name] = {"=RANK(AGGR(SUM([Inv QTY]),[Customer Name]))&amp;lt;=10"}&amp;gt;}[Inv QTY])&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Oct 2013 15:27:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-Rank/m-p/513451#M191851</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2013-10-04T15:27:28Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr &amp; Rank</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-Rank/m-p/513452#M191852</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;SPAN class="j-post-author"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="j-post-author"&gt;&lt;STRONG&gt;you and my expression same. &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN class="j-post-author"&gt;&lt;STRONG&gt;only difference is like &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;TABLE cellspacing="0" class="TableStyle-LeftBold"&gt;&lt;TBODY&gt;&lt;TR class="Body-Body1"&gt;&lt;TD class="BodyE-Column1-Body1"&gt;1&lt;/TD&gt;&lt;TD class="BodyD-Column2-Body1"&gt;Lowest rank on all rows. &lt;/TD&gt;&lt;/TR&gt;&lt;TR class="Body-Body1"&gt;&lt;TD class="BodyE-Column1-Body1"&gt;2&lt;/TD&gt;&lt;TD class="BodyD-Column2-Body1"&gt;Average rank on all rows. &lt;/TD&gt;&lt;/TR&gt;&lt;TR class="Body-Body1"&gt;&lt;TD class="BodyE-Column1-Body1"&gt;3&lt;/TD&gt;&lt;TD class="BodyD-Column2-Body1"&gt;Highest rank on all rows. &lt;/TD&gt;&lt;/TR&gt;&lt;TR class="Body-Body1"&gt;&lt;TD class="BodyE-Column1-Body1"&gt;4&lt;/TD&gt;&lt;TD class="BodyD-Column2-Body1"&gt;&lt;P&gt;Lowest rank on first row, then incremented by one for each row. &lt;SPAN class="j-post-author"&gt;&lt;STRONG class="active_link jiveTT-hover-user jive-username-link" data-avatarid="6447" data-externalid="" data-presence="null" data-userid="69758" data-username="V.IYYAPPAN"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;SPAN class="j-post-author"&gt;&lt;STRONG class="active_link jiveTT-hover-user jive-username-link" data-avatarid="6447" data-externalid="" data-presence="null" data-userid="69758" data-username="V.IYYAPPAN"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="j-post-author"&gt;&lt;STRONG class="active_link jiveTT-hover-user jive-username-link" data-avatarid="6447" data-externalid="" data-presence="null" data-userid="69758" data-username="V.IYYAPPAN"&gt;Please check it.&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="j-post-author"&gt;&lt;STRONG class="active_link jiveTT-hover-user jive-username-link" data-avatarid="6447" data-externalid="" data-presence="null" data-userid="69758" data-username="V.IYYAPPAN"&gt;regards,&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Oct 2013 10:23:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-Rank/m-p/513452#M191852</guid>
      <dc:creator>v_iyyappan</dc:creator>
      <dc:date>2013-10-07T10:23:26Z</dc:date>
    </item>
  </channel>
</rss>

