<?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: Generate Ranks Per Month in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Generate-Ranks-Per-Month/m-p/82104#M768589</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sounds good &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, 28 Jun 2018 13:36:12 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2018-06-28T13:36:12Z</dc:date>
    <item>
      <title>Generate Ranks Per Month</title>
      <link>https://community.qlik.com/t5/QlikView/Generate-Ranks-Per-Month/m-p/82097#M768582</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have my data as in the attached Excel.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basically 4 Columns (An overview of how my data is structured):&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid rgb(0, 0, 0); width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Area Code&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Month&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Market&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Value&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;XX&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;AA&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;20&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please, check the Excel Table for more details.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From, this data i'm looking to generate Rank for Area based on the Value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ex:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Unbenannt.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/206279_Unbenannt.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In Jan Area 1009 is Rank1, 1001 is 2 ......1004 is 10&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Unbenannt2.PNG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/206282_Unbenannt2.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;In Feb Area 1010 is Rank1.....1005 is Rank10&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have used the RecNo() function to generate the Ranks in Script, but i'm not able to generate Ranks per Month.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ex: For the month of Feb with RecNo() i was able to generate the following ranks:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Unbenannt3.PNG" class="jive-image image-3" src="https://community.qlik.com/legacyfs/online/206283_Unbenannt3.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But, what i'm looking for is Rank 1-10 per month.&lt;/P&gt;&lt;P&gt;TIA!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Generate-Ranks-Per-Month/m-p/82097#M768582</guid>
      <dc:creator>psk180590</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Generate Ranks Per Month</title>
      <link>https://community.qlik.com/t5/QlikView/Generate-Ranks-Per-Month/m-p/82098#M768583</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;Raw_Data:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;LOAD Distinct *&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;FROM&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;[Rank_Test.xlsx]&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;(ooxml, embedded labels, table is Tabelle1);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;Ranking:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;LOAD *,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13.3333px;"&gt; &lt;SPAN style="color: #339966;"&gt;If(Month = Previous(Month), RangeSum(Peek('Ranking'), 1), 1) as Ranking,&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13.3333px;"&gt; &lt;SPAN style="color: #0000ff;"&gt;AutoNumber(RecNo(), Month) as Ranking2&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;Resident Raw_Data&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;Order by Month, Value desc;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;DROP Table Raw_Data;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will go with the green option... but I have added the blue one too...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jun 2018 14:44:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Generate-Ranks-Per-Month/m-p/82098#M768583</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-06-26T14:44:37Z</dc:date>
    </item>
    <item>
      <title>Re: Generate Ranks Per Month</title>
      <link>https://community.qlik.com/t5/QlikView/Generate-Ranks-Per-Month/m-p/82099#M768584</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Sunny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your solution has perfectly worked for me thanks for this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But, now i need to create Regiob from Area Code and also generate Ranks for the Regions. I'm somehow not able to acheive it through both the logics you defined.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please, have a look at the updated qvd and Excel Table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks Again and Best Regards&lt;/P&gt;&lt;P&gt;Sai.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jun 2018 13:05:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Generate-Ranks-Per-Month/m-p/82099#M768584</guid>
      <dc:creator>psk180590</dc:creator>
      <dc:date>2018-06-28T13:05:49Z</dc:date>
    </item>
    <item>
      <title>Re: Generate Ranks Per Month</title>
      <link>https://community.qlik.com/t5/QlikView/Generate-Ranks-Per-Month/m-p/82100#M768585</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is the expected output?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jun 2018 13:12:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Generate-Ranks-Per-Month/m-p/82100#M768585</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-06-28T13:12:35Z</dc:date>
    </item>
    <item>
      <title>Re: Generate Ranks Per Month</title>
      <link>https://community.qlik.com/t5/QlikView/Generate-Ranks-Per-Month/m-p/82101#M768586</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The 'RankingReg' should always have 8(1-8 Ranks).&lt;/P&gt;&lt;P&gt;Same logic as Area Code(Which has 1-91 Ranks always)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jun 2018 13:14:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Generate-Ranks-Per-Month/m-p/82101#M768586</guid>
      <dc:creator>psk180590</dc:creator>
      <dc:date>2018-06-28T13:14:22Z</dc:date>
    </item>
    <item>
      <title>Re: Generate Ranks Per Month</title>
      <link>https://community.qlik.com/t5/QlikView/Generate-Ranks-Per-Month/m-p/82102#M768587</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you check if attached is what you want&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jun 2018 13:30:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Generate-Ranks-Per-Month/m-p/82102#M768587</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-06-28T13:30:08Z</dc:date>
    </item>
    <item>
      <title>Re: Generate Ranks Per Month</title>
      <link>https://community.qlik.com/t5/QlikView/Generate-Ranks-Per-Month/m-p/82103#M768588</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Many Thanks looks good. I will give it a try right away!! &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, 28 Jun 2018 13:34:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Generate-Ranks-Per-Month/m-p/82103#M768588</guid>
      <dc:creator>psk180590</dc:creator>
      <dc:date>2018-06-28T13:34:01Z</dc:date>
    </item>
    <item>
      <title>Re: Generate Ranks Per Month</title>
      <link>https://community.qlik.com/t5/QlikView/Generate-Ranks-Per-Month/m-p/82104#M768589</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sounds good &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, 28 Jun 2018 13:36:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Generate-Ranks-Per-Month/m-p/82104#M768589</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-06-28T13:36:12Z</dc:date>
    </item>
  </channel>
</rss>

