<?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 Using Rank function... in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Using-Rank-function/m-p/555395#M1124724</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin-bottom: .0001pt;"&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have sample data, I want analyze the top &lt;STRONG&gt;second sales&lt;/STRONG&gt; and top sales with top most product.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dev01:&lt;BR /&gt; LOAD * Inline [&lt;BR /&gt; Year,Sales,P_ID&lt;BR /&gt; 2010,100,01&lt;BR /&gt; 2010,200,02&lt;BR /&gt; 2010,300,03&lt;BR /&gt; 2010,400,04&lt;BR /&gt; 2010,500,05&lt;BR /&gt; 2012,1000,01&lt;BR /&gt; 2012,2000,02&lt;BR /&gt; &lt;STRONG&gt;2012,3000,03&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; 2012,4000,04&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; 2012,5000,05&lt;/STRONG&gt;&lt;BR /&gt; 2013,1100,01&lt;BR /&gt; 2013,1200,02&lt;BR /&gt; &lt;STRONG&gt;2013,1300,03&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; 2013,1400,04&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; 2013,1500,05&lt;/STRONG&gt;&lt;BR /&gt; 2014,10,01&lt;BR /&gt; 2014,20,02&lt;BR /&gt; 30&lt;BR /&gt; ]; &lt;/P&gt;&lt;P&gt;I try to this expression but not exact reply.&lt;/P&gt;&lt;P&gt;Aggr(IF(Rank(sum(Sales),2)&amp;lt;=2,Sum(Sales)),P_ID),&lt;/P&gt;&lt;P&gt;I am expect like this Year =2012, 2013 with sum of sales P_Id is 03, 04, 05 for both year.&lt;BR /&gt; &lt;BR /&gt; &lt;/P&gt;&lt;P&gt;Rregards,&lt;/P&gt;&lt;P&gt;Raja.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 06 Jan 2014 06:48:00 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-01-06T06:48:00Z</dc:date>
    <item>
      <title>Using Rank function...</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Rank-function/m-p/555395#M1124724</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin-bottom: .0001pt;"&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have sample data, I want analyze the top &lt;STRONG&gt;second sales&lt;/STRONG&gt; and top sales with top most product.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dev01:&lt;BR /&gt; LOAD * Inline [&lt;BR /&gt; Year,Sales,P_ID&lt;BR /&gt; 2010,100,01&lt;BR /&gt; 2010,200,02&lt;BR /&gt; 2010,300,03&lt;BR /&gt; 2010,400,04&lt;BR /&gt; 2010,500,05&lt;BR /&gt; 2012,1000,01&lt;BR /&gt; 2012,2000,02&lt;BR /&gt; &lt;STRONG&gt;2012,3000,03&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; 2012,4000,04&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; 2012,5000,05&lt;/STRONG&gt;&lt;BR /&gt; 2013,1100,01&lt;BR /&gt; 2013,1200,02&lt;BR /&gt; &lt;STRONG&gt;2013,1300,03&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; 2013,1400,04&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; 2013,1500,05&lt;/STRONG&gt;&lt;BR /&gt; 2014,10,01&lt;BR /&gt; 2014,20,02&lt;BR /&gt; 30&lt;BR /&gt; ]; &lt;/P&gt;&lt;P&gt;I try to this expression but not exact reply.&lt;/P&gt;&lt;P&gt;Aggr(IF(Rank(sum(Sales),2)&amp;lt;=2,Sum(Sales)),P_ID),&lt;/P&gt;&lt;P&gt;I am expect like this Year =2012, 2013 with sum of sales P_Id is 03, 04, 05 for both year.&lt;BR /&gt; &lt;BR /&gt; &lt;/P&gt;&lt;P&gt;Rregards,&lt;/P&gt;&lt;P&gt;Raja.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Jan 2014 06:48:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Rank-function/m-p/555395#M1124724</guid>
      <dc:creator />
      <dc:date>2014-01-06T06:48:00Z</dc:date>
    </item>
    <item>
      <title>Re: Using Rank function...</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Rank-function/m-p/555396#M1124725</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not very clear. Could you explain a bit more?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Jan 2014 07:28:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Rank-function/m-p/555396#M1124725</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2014-01-06T07:28:44Z</dc:date>
    </item>
    <item>
      <title>Re: Using Rank function...</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Rank-function/m-p/555397#M1124726</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;Hi Tresesco,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;Above script reference,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;I looking like (using rank function), top(first,second) of the sales year and that particular year which product obtain more sales,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;For Ex,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;Year = 2012, 2013&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;Year 2012:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #3d3d3d; font-size: 10.0pt; font-family: 'Helvetica','sans-serif';"&gt;Year,Sales,P_ID&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;2012,3000,03&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;2012,4000,04&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;2012,5000,05&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #3d3d3d; font-size: 10.0pt; font-family: 'Helvetica','sans-serif';"&gt;like 2012 Year Sum(15000) .&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #3d3d3d; font-size: 10.0pt; font-family: 'Helvetica','sans-serif';"&gt;Year,Sales,P_ID&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;2013,1300,03&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;2013,1400,04&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;2013,1500,05&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #3d3d3d; font-size: 10.0pt; font-family: 'Helvetica','sans-serif';"&gt;2013 Year Sum of Sales(4200).&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raja.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Jan 2014 07:45:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Rank-function/m-p/555397#M1124726</guid>
      <dc:creator />
      <dc:date>2014-01-06T07:45:30Z</dc:date>
    </item>
    <item>
      <title>Re: Using Rank function...</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Rank-function/m-p/555398#M1124727</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;Use Dimension Limits for doing this, very simpler one, please find attachment for solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Jan 2014 07:49:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Rank-function/m-p/555398#M1124727</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2014-01-06T07:49:33Z</dc:date>
    </item>
    <item>
      <title>Re: Using Rank function...</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Rank-function/m-p/555399#M1124728</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin-bottom: auto; text-align: justify;"&gt;&lt;SPAN style="font-family: 'Book Antiqua','serif';"&gt;Hi Jagan,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: auto; text-align: justify;"&gt;&lt;SPAN style="font-family: 'Book Antiqua','serif';"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: auto; text-align: justify;"&gt;&lt;SPAN style="font-family: 'Book Antiqua','serif';"&gt;Thanks Jangan , prompt your replay,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: auto; text-align: justify;"&gt;&lt;SPAN style="font-family: 'Book Antiqua','serif';"&gt;I make sure&amp;nbsp; the Pivot table.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Jan 2014 07:57:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Rank-function/m-p/555399#M1124728</guid>
      <dc:creator />
      <dc:date>2014-01-06T07:57:37Z</dc:date>
    </item>
    <item>
      <title>Re: Using Rank function...</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Rank-function/m-p/555400#M1124729</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jana,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying Pivot Table with &lt;STRONG&gt;Rank&lt;/STRONG&gt; Function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raja.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Jan 2014 07:58:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Rank-function/m-p/555400#M1124729</guid>
      <dc:creator />
      <dc:date>2014-01-06T07:58:58Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Using Rank function...</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Rank-function/m-p/555401#M1124730</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;Please find attached file for solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Jan 2014 08:51:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Rank-function/m-p/555401#M1124730</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2014-01-06T08:51:46Z</dc:date>
    </item>
  </channel>
</rss>

