<?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: Rank in script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Rank-in-script/m-p/100899#M16076</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If I use the following code on the table from my previous post:&lt;/P&gt;&lt;P&gt;Pre_Min:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Equipment,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Part Group",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Key_EMS,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Calendar,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Age_Final&lt;/P&gt;&lt;P&gt;FROM [lib://Community/min.xlsx]&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is Sheet1);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Min:&lt;/P&gt;&lt;P&gt;NoConcatenate&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;First 2&lt;/STRONG&gt; Load&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;Resident Pre_Min&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Order By Age_Final asc;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Drop Table Pre_Min;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I get the following result:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Min_1.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/214281_Min_1.PNG" style="height: 63px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;You lose any 3rd, 4th, 5th,... row with the same value though, but if that's ok, this should solve your problem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 24 Sep 2018 11:51:29 GMT</pubDate>
    <dc:creator>timpoismans</dc:creator>
    <dc:date>2018-09-24T11:51:29Z</dc:date>
    <item>
      <title>Rank in script</title>
      <link>https://community.qlik.com/t5/QlikView/Rank-in-script/m-p/100892#M16069</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have&amp;nbsp; the following columns in script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Equipment, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Part Group], &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Key_EMS, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Calendar, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Age_Final&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now in Age_Final i have the following output: and image for reference:&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 68px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD align="right" height="20" width="68"&gt;10&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;5&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;10&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;IMG alt="T.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/214276_T.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;Now i need to get only min ages i.e. 3 and 5. I need to this in script. Do i need to use Rank(Guess it cannot be worked in script) or autonumber to get only min 2 ages.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Attaching qvw and excel for reference.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know how to do this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Bharat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Sep 2018 10:55:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rank-in-script/m-p/100892#M16069</guid>
      <dc:creator>bharatkishore</dc:creator>
      <dc:date>2018-09-24T10:55:38Z</dc:date>
    </item>
    <item>
      <title>Re: Rank in script</title>
      <link>https://community.qlik.com/t5/QlikView/Rank-in-script/m-p/100893#M16070</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please clarify your issue a bit more:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;You want the two lowest age values? Three? Four? I presume we only get 3 and 5 here because of the e.g.&lt;/LI&gt;&lt;/UL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Sep 2018 11:00:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rank-in-script/m-p/100893#M16070</guid>
      <dc:creator>timpoismans</dc:creator>
      <dc:date>2018-09-24T11:00:24Z</dc:date>
    </item>
    <item>
      <title>Re: Rank in script</title>
      <link>https://community.qlik.com/t5/QlikView/Rank-in-script/m-p/100894#M16071</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Tim,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes&amp;nbsp; i need to get 3 and 5.. i mean lowest values(any numbers it can be but needed only lowest two values).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know if you need anything more.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Sep 2018 11:04:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rank-in-script/m-p/100894#M16071</guid>
      <dc:creator>bharatkishore</dc:creator>
      <dc:date>2018-09-24T11:04:21Z</dc:date>
    </item>
    <item>
      <title>Re: Rank in script</title>
      <link>https://community.qlik.com/t5/QlikView/Rank-in-script/m-p/100895#M16072</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What happens when you get the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="341"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" width="75"&gt;Equipment&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="73"&gt;Part Group&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="63"&gt;Key_EMS&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="62"&gt;Calendar&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="68"&gt;Age_Final&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" style="border-top: none;"&gt;E1&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;P1&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;Key1&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;2013-01&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;10&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" style="border-top: none;"&gt;E1&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;P1&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;Key2&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;2013-01&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;5&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" style="border-top: none;"&gt;E1&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;P1&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;Key3&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;2013-01&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;10&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" style="border-top: none;"&gt;E1&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;P1&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;Key4&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;2013-01&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" style="border-top: none;"&gt;E1&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;P1&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;Key5&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;2013-01&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;&lt;P&gt;3&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Which rows do you want to see? Key2, Key4 and Key5?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Sep 2018 11:15:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rank-in-script/m-p/100895#M16072</guid>
      <dc:creator>timpoismans</dc:creator>
      <dc:date>2018-09-24T11:15:51Z</dc:date>
    </item>
    <item>
      <title>Re: Rank in script</title>
      <link>https://community.qlik.com/t5/QlikView/Rank-in-script/m-p/100896#M16073</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Then i should get key4&amp;nbsp; and key5 which is 3,3 (bec&amp;nbsp; i need minimum 2 numbers of age.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know if you need anything more.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Sep 2018 11:19:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rank-in-script/m-p/100896#M16073</guid>
      <dc:creator>bharatkishore</dc:creator>
      <dc:date>2018-09-24T11:19:03Z</dc:date>
    </item>
    <item>
      <title>Re: Rank in script</title>
      <link>https://community.qlik.com/t5/QlikView/Rank-in-script/m-p/100897#M16074</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Even though it's the same value?&lt;/P&gt;&lt;P&gt;I'd think you'd want to see the two lowest ages, which are 3 and 5 and see all rows associated with those rows, so the row with Key2, Key4 and Key5.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What would you do if you have three rows with 3 as the value for Age_Final?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="341"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" width="75"&gt;Equipment&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="73"&gt;Part Group&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="63"&gt;Key_EMS&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="62"&gt;Calendar&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="68"&gt;Age_Final&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" style="border-top: none;"&gt;E1&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;P1&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;Key1&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;2013-01&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;10&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" style="border-top: none;"&gt;E1&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;P1&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;Key2&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;2013-01&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;5&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" style="border-top: none;"&gt;E1&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;P1&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;Key3&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;2013-01&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;10&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" style="border-top: none;"&gt;E1&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;P1&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;Key4&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;2013-01&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" style="border-top: none;"&gt;E1&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;P1&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;Key5&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;2013-01&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" style="border-top: none;"&gt;E1&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;P1&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;Key6&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;2013-01&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Which rows would you want to keep then?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Sep 2018 11:32:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rank-in-script/m-p/100897#M16074</guid>
      <dc:creator>timpoismans</dc:creator>
      <dc:date>2018-09-24T11:32:36Z</dc:date>
    </item>
    <item>
      <title>Re: Rank in script</title>
      <link>https://community.qlik.com/t5/QlikView/Rank-in-script/m-p/100898#M16075</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In the above mentioned one i would consider any of the two rows in Key4 , key5 , key6.. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In Key4,Key5,Key6 i can get any rows because the minimum value is 3 and the output should be&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="border: 0px; font-size: 13px; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, &amp;quot;Lucida Grande&amp;quot;, sans-serif; color: rgb(61, 61, 61); width: 341px;"&gt;&lt;TBODY style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD class="xl65" height="20" style="padding-right: 4px; padding-left: 4px; border: 0px solid black; font-style: inherit; font-family: inherit;" width="75"&gt;Equipment&lt;/TD&gt;&lt;TD class="xl65" style="padding-right: 4px; padding-left: 4px; border-top: 0 solid black; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;" width="73"&gt;Part Group&lt;/TD&gt;&lt;TD class="xl65" style="padding-right: 4px; padding-left: 4px; border-top: 0 solid black; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;" width="63"&gt;Key_EMS&lt;/TD&gt;&lt;TD class="xl65" style="padding-right: 4px; padding-left: 4px; border-top: 0 solid black; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;" width="62"&gt;Calendar&lt;/TD&gt;&lt;TD class="xl65" style="padding-right: 4px; padding-left: 4px; border-top: 0 solid black; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;" width="68"&gt;Age_Final&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD class="xl65" height="20" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: 0 solid black; font-style: inherit; font-family: inherit;"&gt;&lt;/TD&gt;&lt;TD class="xl65" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;"&gt;&lt;/TD&gt;&lt;TD align="right" class="xl65" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD class="xl65" height="20" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: 0 solid black; font-style: inherit; font-family: inherit;"&gt;&lt;/TD&gt;&lt;TD class="xl65" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;"&gt;&lt;/TD&gt;&lt;TD class="xl65" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;"&gt;&lt;/TD&gt;&lt;TD align="right" class="xl65" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD class="xl65" height="20" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: 0 solid black; font-style: inherit; font-family: inherit;"&gt;E1&lt;/TD&gt;&lt;TD class="xl65" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;"&gt;P1&lt;/TD&gt;&lt;TD class="xl65" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;"&gt;Key5&lt;/TD&gt;&lt;TD class="xl65" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;"&gt;2013-01&lt;/TD&gt;&lt;TD align="right" class="xl65" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;"&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD class="xl65" height="20" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: 0 solid black; font-style: inherit; font-family: inherit;"&gt;E1&lt;/TD&gt;&lt;TD class="xl65" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;"&gt;P1&lt;/TD&gt;&lt;TD class="xl65" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;"&gt;Key6&lt;/TD&gt;&lt;TD class="xl65" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;"&gt;2013-01&lt;/TD&gt;&lt;TD align="right" class="xl65" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: none; font-style: inherit; font-family: inherit;"&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It can be any two rows i mean either Key4,Key 6 or Key4,Key5 any two...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Sep 2018 11:39:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rank-in-script/m-p/100898#M16075</guid>
      <dc:creator>bharatkishore</dc:creator>
      <dc:date>2018-09-24T11:39:04Z</dc:date>
    </item>
    <item>
      <title>Re: Rank in script</title>
      <link>https://community.qlik.com/t5/QlikView/Rank-in-script/m-p/100899#M16076</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If I use the following code on the table from my previous post:&lt;/P&gt;&lt;P&gt;Pre_Min:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Equipment,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Part Group",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Key_EMS,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Calendar,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Age_Final&lt;/P&gt;&lt;P&gt;FROM [lib://Community/min.xlsx]&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is Sheet1);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Min:&lt;/P&gt;&lt;P&gt;NoConcatenate&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;First 2&lt;/STRONG&gt; Load&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;Resident Pre_Min&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Order By Age_Final asc;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Drop Table Pre_Min;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I get the following result:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Min_1.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/214281_Min_1.PNG" style="height: 63px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;You lose any 3rd, 4th, 5th,... row with the same value though, but if that's ok, this should solve your problem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Sep 2018 11:51:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rank-in-script/m-p/100899#M16076</guid>
      <dc:creator>timpoismans</dc:creator>
      <dc:date>2018-09-24T11:51:29Z</dc:date>
    </item>
    <item>
      <title>Re: Rank in script</title>
      <link>https://community.qlik.com/t5/QlikView/Rank-in-script/m-p/100900#M16077</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your reply..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Will try and let you know if it works..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As per your image that is what i need..Will test with my original data..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Sep 2018 12:03:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rank-in-script/m-p/100900#M16077</guid>
      <dc:creator>bharatkishore</dc:creator>
      <dc:date>2018-09-24T12:03:03Z</dc:date>
    </item>
    <item>
      <title>Re: Rank in script</title>
      <link>https://community.qlik.com/t5/QlikView/Rank-in-script/m-p/100901#M16078</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Tim,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For wherever i have 1 equipment it is working fine, Kindly find the attached excel.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now here the i have added&amp;nbsp; quantity column and some more equipments and part groups and keys and the output should be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="384"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD height="20" width="64"&gt;Equipment&lt;/TD&gt;&lt;TD width="64"&gt;Part Group&lt;/TD&gt;&lt;TD width="64"&gt;Key_EMS&lt;/TD&gt;&lt;TD width="64"&gt;Calendar&lt;/TD&gt;&lt;TD width="64"&gt;Age_Final&lt;/TD&gt;&lt;TD width="64"&gt;Quantity&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;E1&lt;/TD&gt;&lt;TD&gt;P1&lt;/TD&gt;&lt;TD&gt;Key2&lt;/TD&gt;&lt;TD&gt;2013-01&lt;/TD&gt;&lt;TD align="right"&gt;3&lt;/TD&gt;&lt;TD align="right"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;E1&lt;/TD&gt;&lt;TD&gt;P1&lt;/TD&gt;&lt;TD&gt;Key4&lt;/TD&gt;&lt;TD&gt;2013-01&lt;/TD&gt;&lt;TD align="right"&gt;5&lt;/TD&gt;&lt;TD align="right"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;E2&lt;/TD&gt;&lt;TD&gt;P1&lt;/TD&gt;&lt;TD&gt;Key7&lt;/TD&gt;&lt;TD&gt;2013-01&lt;/TD&gt;&lt;TD align="right"&gt;22&lt;/TD&gt;&lt;TD align="right"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;E2&lt;/TD&gt;&lt;TD&gt;P1&lt;/TD&gt;&lt;TD&gt;Key8&lt;/TD&gt;&lt;TD&gt;2013-01&lt;/TD&gt;&lt;TD align="right"&gt;15&lt;/TD&gt;&lt;TD align="right"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;E3&lt;/TD&gt;&lt;TD&gt;P2&lt;/TD&gt;&lt;TD&gt;Key10&lt;/TD&gt;&lt;TD&gt;2013-02&lt;/TD&gt;&lt;TD align="right"&gt;5&lt;/TD&gt;&lt;TD align="right"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;E3&lt;/TD&gt;&lt;TD&gt;P2&lt;/TD&gt;&lt;TD&gt;Key11&lt;/TD&gt;&lt;TD&gt;2013-02&lt;/TD&gt;&lt;TD align="right"&gt;5&lt;/TD&gt;&lt;TD align="right"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And need to do sum of quantity and&amp;nbsp; group by should be on following columns i.e &lt;SPAN style="font-size: 13.3333px;"&gt;Equipment,Part Group,Calendar&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Please let me know if you need anything more.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Sep 2018 12:30:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rank-in-script/m-p/100901#M16078</guid>
      <dc:creator>bharatkishore</dc:creator>
      <dc:date>2018-09-24T12:30:02Z</dc:date>
    </item>
    <item>
      <title>Re: Rank in script</title>
      <link>https://community.qlik.com/t5/QlikView/Rank-in-script/m-p/100902#M16079</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You're making groups based on the values of your dimensions.&lt;/P&gt;&lt;P&gt;Why does this have to happen in the script?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Sep 2018 13:04:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rank-in-script/m-p/100902#M16079</guid>
      <dc:creator>timpoismans</dc:creator>
      <dc:date>2018-09-24T13:04:24Z</dc:date>
    </item>
    <item>
      <title>Re: Rank in script</title>
      <link>https://community.qlik.com/t5/QlikView/Rank-in-script/m-p/100903#M16080</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Because i.e one the requirement and based on the the above logic will be deriving other steps in the script...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Sep 2018 13:12:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rank-in-script/m-p/100903#M16080</guid>
      <dc:creator>bharatkishore</dc:creator>
      <dc:date>2018-09-24T13:12:48Z</dc:date>
    </item>
    <item>
      <title>Re: Rank in script</title>
      <link>https://community.qlik.com/t5/QlikView/Rank-in-script/m-p/100904#M16081</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't think it's possible to load two rows where [Age_Final] is min. per unique value of your Equipment field&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you'd tell us what your goal is, perhaps we could help you further.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Sep 2018 13:24:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rank-in-script/m-p/100904#M16081</guid>
      <dc:creator>timpoismans</dc:creator>
      <dc:date>2018-09-24T13:24:41Z</dc:date>
    </item>
    <item>
      <title>Re: Rank in script</title>
      <link>https://community.qlik.com/t5/QlikView/Rank-in-script/m-p/100905#M16082</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I need to get the min age values&amp;nbsp; which are 2 min age values. For every record i mean for every equipment and Part Group and Calendar month.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In sql it has been developed with help of rank function there it has been considered as min of 2 ranks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope you can understand the scenario&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The same can we do in qlikview.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know if you need anything more.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Sep 2018 13:30:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rank-in-script/m-p/100905#M16082</guid>
      <dc:creator>bharatkishore</dc:creator>
      <dc:date>2018-09-24T13:30:55Z</dc:date>
    </item>
  </channel>
</rss>

