<?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 Help in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Rank-Help/m-p/1366054#M418094</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Actually, including second dimension in the autonumber() made me think so.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Otherwise, the same could probably be got in the front end using &lt;STRONG&gt;=Rank(DateField)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 04 May 2017 13:40:44 GMT</pubDate>
    <dc:creator>tresB</dc:creator>
    <dc:date>2017-05-04T13:40:44Z</dc:date>
    <item>
      <title>Rank Help</title>
      <link>https://community.qlik.com/t5/QlikView/Rank-Help/m-p/1366049#M418089</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have the following issue,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to rank how many times someone has ordered from us by date, so the first order would be 1, second would be 2, etc.with the following load statement.&amp;nbsp; What I am trying to create is a last shipment date for every order by using ranking to autonumber.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Autonumber(Num(ShipDate), PATID_DRUG_COMBO) as Rank&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However it is not ranking in the load statement is not working properly,&amp;nbsp;&amp;nbsp;&amp;nbsp; When i rank in an expression it comes up with the correct rank, but I need it in the load statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions on what I am doing wrong in the load.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you see the attached you can see the ranking is wrong, Dec2016 should be 1, then Mar 2, April 6 should be 3 and april 12 should be 4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help is much appreciated&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 May 2017 12:33:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rank-Help/m-p/1366049#M418089</guid>
      <dc:creator>ljames88</dc:creator>
      <dc:date>2017-05-04T12:33:34Z</dc:date>
    </item>
    <item>
      <title>Re: Rank Help</title>
      <link>https://community.qlik.com/t5/QlikView/Rank-Help/m-p/1366050#M418090</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try adding:&lt;/P&gt;&lt;P&gt;RowNo() as Rank &lt;/P&gt;&lt;P&gt;in script and then sort your table by "Load Order" in case that your dates are consecutive.&lt;/P&gt;&lt;P&gt;If not, then please upload some sample data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 May 2017 12:53:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rank-Help/m-p/1366050#M418090</guid>
      <dc:creator>Frank_Hartmann</dc:creator>
      <dc:date>2017-05-04T12:53:35Z</dc:date>
    </item>
    <item>
      <title>Re: Rank Help</title>
      <link>https://community.qlik.com/t5/QlikView/Rank-Help/m-p/1366051#M418091</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think this seems to be a sorting issue... you can try like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Fact:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD ShipDate,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; PATID_DRUG_COMBO,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; OtherFields....&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FROM ....;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Left Join (Fact)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD ShipDate,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; PATID_DRUG_COMBO,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #ff0000;"&gt; Autonumber(Num(ShipDate), PATID_DRUG_COMBO) as Rank&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Resident Fact&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Order By ShipDate;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 May 2017 13:09:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rank-Help/m-p/1366051#M418091</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-05-04T13:09:51Z</dc:date>
    </item>
    <item>
      <title>Re: Rank Help</title>
      <link>https://community.qlik.com/t5/QlikView/Rank-Help/m-p/1366052#M418092</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perhaps the other dimension also would be required in the order by clause to rank them accordingly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;SPAN style="color: #808080; font-family: 'courier new', courier;"&gt;LOAD ShipDate,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;SPAN style="color: #808080; font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; PATID_DRUG_COMBO,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;SPAN style="color: #808080; font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;Autonumber(ShipDate, PATID_DRUG_COMBO) as Rank&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;SPAN style="color: #808080; font-family: 'courier new', courier;"&gt;Resident Fact&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;SPAN style="color: #808080; font-family: 'courier new', courier;"&gt;&lt;SPAN style="color: #0000ff;"&gt;Order By&lt;/SPAN&gt;&amp;nbsp; &lt;STRONG style="color: #0000ff;"&gt;PATID_DRUG_COMBO,&lt;/STRONG&gt; &lt;SPAN style="color: #0000ff;"&gt;ShipDate;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;SPAN style="color: #808080; font-family: 'courier new', courier;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;SPAN style="color: #808080; font-family: 'courier new', courier;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;SPAN style="color: #808080; font-family: 'courier new', courier;"&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;We can also remove the redundant num()&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 May 2017 13:33:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rank-Help/m-p/1366052#M418092</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2017-05-04T13:33:51Z</dc:date>
    </item>
    <item>
      <title>Re: Rank Help</title>
      <link>https://community.qlik.com/t5/QlikView/Rank-Help/m-p/1366053#M418093</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does it really matter to sort by &lt;STRONG&gt;PATID_DRUG_COMBO&lt;/STRONG&gt;? For some reason I don't think we need it... but before I can say it confidently, I am going to perform a quick test &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 May 2017 13:35:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rank-Help/m-p/1366053#M418093</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-05-04T13:35:59Z</dc:date>
    </item>
    <item>
      <title>Re: Rank Help</title>
      <link>https://community.qlik.com/t5/QlikView/Rank-Help/m-p/1366054#M418094</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Actually, including second dimension in the autonumber() made me think so.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Otherwise, the same could probably be got in the front end using &lt;STRONG&gt;=Rank(DateField)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 May 2017 13:40:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rank-Help/m-p/1366054#M418094</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2017-05-04T13:40:44Z</dc:date>
    </item>
    <item>
      <title>Re: Rank Help</title>
      <link>https://community.qlik.com/t5/QlikView/Rank-Help/m-p/1366055#M418095</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here check it out&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Table:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD * INLINE [&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; PATID_DRUG_COMBO, ShipDate&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ABC, 04/12/2017&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ABC, 04/06/2017&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ABC, 03/21/2017&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; DEF, 02/24/2017&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ABC, 12/19/2016&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; DEF, 05/23/2017&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ABC, 11/10/2016&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;];&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Left Join (Table)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD *,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; Autonumber(Num(ShipDate), PATID_DRUG_COMBO) as Rank1&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Resident Table&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Order By ShipDate;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Left Join (Table)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD *,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; Autonumber(Num(ShipDate), PATID_DRUG_COMBO) as Rank2&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Resident Table&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Order By PATID_DRUG_COMBO, ShipDate;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rank1 and Rank2 are the exact same&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/162175_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 May 2017 13:41:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rank-Help/m-p/1366055#M418095</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-05-04T13:41:22Z</dc:date>
    </item>
    <item>
      <title>Re: Rank Help</title>
      <link>https://community.qlik.com/t5/QlikView/Rank-Help/m-p/1366056#M418096</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, you are right. Since the second dimension is there in autonumber(), it's order is actually being considered, so it it not necessary in the Order By. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/silly.png" /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 May 2017 13:55:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rank-Help/m-p/1366056#M418096</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2017-05-04T13:55:42Z</dc:date>
    </item>
    <item>
      <title>Re: Rank Help</title>
      <link>https://community.qlik.com/t5/QlikView/Rank-Help/m-p/1366057#M418097</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yup &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 May 2017 15:24:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rank-Help/m-p/1366057#M418097</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-05-04T15:24:03Z</dc:date>
    </item>
  </channel>
</rss>

