<?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: create monthly ranks in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/create-monthly-ranks/m-p/1548652#M598383</link>
    <description>&lt;P&gt;Hey,&lt;/P&gt;&lt;P&gt;thats great. It works perfectly.&lt;/P&gt;&lt;P&gt;Now I have to create quartiles based on the ranks per year, month and group&lt;/P&gt;&lt;P&gt;If rank &amp;lt;=0.1*total&amp;nbsp;rankcount of that month&amp;nbsp;then quartile1,&lt;/P&gt;&lt;P&gt;If rank &amp;gt;=0.1*total&amp;nbsp;rankcount of that month&amp;nbsp;then quartile2&lt;/P&gt;&lt;P&gt;Based on the built&amp;nbsp;Quartiles&amp;nbsp; I have to calculate the average of those quartiles per year, month and group&lt;/P&gt;&lt;P&gt;Do you know how to do it?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 25 Feb 2019 11:10:25 GMT</pubDate>
    <dc:creator>sabmaldun</dc:creator>
    <dc:date>2019-02-25T11:10:25Z</dc:date>
    <item>
      <title>create monthly ranks</title>
      <link>https://community.qlik.com/t5/QlikView/create-monthly-ranks/m-p/1548373#M598381</link>
      <description>&lt;P&gt;&lt;FONT size="1"&gt;Hello,&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="1"&gt;I try to create a Rank for Dealers per month. Therefor I have to Loop through all month and create the ranks.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="1"&gt;Anyone of you has a Suggestion how to do it? I have written the Code below, but it does not work. I also tried rowno() function, but then it does not start with 1 again for each month.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="1"&gt;Thank you guys !!&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="1"&gt;&lt;BR /&gt;&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#0000ff" size="1"&gt;Set&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT size="1"&gt; count=1;&lt;BR /&gt;&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#0000ff" size="1"&gt;For&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT size="1"&gt; j=2017 &lt;/FONT&gt;&lt;FONT color="#0000ff" size="1"&gt;to&lt;/FONT&gt;&lt;FONT size="1"&gt; 2018&lt;BR /&gt;&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#0000ff" size="1"&gt;For&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT size="1"&gt; i=1 &lt;/FONT&gt;&lt;FONT color="#0000ff" size="1"&gt;to&lt;/FONT&gt;&lt;FONT size="1"&gt; 12&lt;BR /&gt;&lt;BR /&gt;Ranking:&lt;BR /&gt;&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#0000ff" size="1"&gt;LOAD&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#800000" size="1"&gt;DealerID&lt;/FONT&gt;&lt;FONT size="1"&gt;,&lt;BR /&gt;&lt;/FONT&gt;&lt;STRONG&gt;&lt;I&gt;&lt;FONT color="#808080" size="1"&gt;$(j)&lt;/FONT&gt;&lt;/I&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" size="1"&gt;as&lt;/FONT&gt; &lt;FONT color="#800000" size="1"&gt;Year&lt;/FONT&gt;&lt;FONT size="1"&gt;,&lt;BR /&gt;&lt;/FONT&gt;&lt;STRONG&gt;&lt;I&gt;&lt;FONT color="#808080" size="1"&gt;$(i)&lt;/FONT&gt;&lt;/I&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" size="1"&gt;as&lt;/FONT&gt; &lt;FONT color="#800000" size="1"&gt;Month&lt;/FONT&gt;&lt;FONT size="1"&gt;,&lt;BR /&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" size="1"&gt;sum&lt;/FONT&gt;&lt;FONT size="1"&gt;(&lt;/FONT&gt;&lt;FONT color="#800000" size="1"&gt;YTDPartSales&lt;/FONT&gt;&lt;FONT size="1"&gt;),&lt;BR /&gt;&lt;/FONT&gt;&lt;STRONG&gt;&lt;I&gt;&lt;FONT color="#808080" size="1"&gt;$(count)&lt;/FONT&gt;&lt;/I&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" size="1"&gt;as&lt;/FONT&gt; &lt;FONT color="#800000" size="1"&gt;Rank&lt;/FONT&gt;&lt;FONT size="1"&gt;&lt;BR /&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" size="1"&gt;Resident&lt;/FONT&gt;&lt;FONT size="1"&gt; YTDTemp&lt;BR /&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" size="1"&gt;Order&lt;/FONT&gt; &lt;FONT color="#0000ff" size="1"&gt;By&lt;/FONT&gt; &lt;FONT color="#800000" size="1"&gt;YTDPartSales&lt;/FONT&gt; &lt;FONT color="#0000ff" size="1"&gt;desc&lt;/FONT&gt;&lt;FONT size="1"&gt;;&lt;BR /&gt;&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#0000ff" size="1"&gt;Set&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT size="1"&gt; count=&lt;/FONT&gt;&lt;STRONG&gt;&lt;I&gt;&lt;FONT color="#808080" size="1"&gt;$(count)&lt;/FONT&gt;&lt;/I&gt;&lt;/STRONG&gt;&lt;FONT size="1"&gt;+1;&lt;BR /&gt;&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#0000ff" size="1"&gt;Next&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT size="1"&gt; i;&lt;BR /&gt;&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#0000ff" size="1"&gt;Next&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT size="1"&gt; j;&lt;BR /&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 04:21:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/create-monthly-ranks/m-p/1548373#M598381</guid>
      <dc:creator>sabmaldun</dc:creator>
      <dc:date>2024-11-16T04:21:44Z</dc:date>
    </item>
    <item>
      <title>Re: create monthly ranks</title>
      <link>https://community.qlik.com/t5/QlikView/create-monthly-ranks/m-p/1548385#M598382</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/63582"&gt;@sabmaldun&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Try this example file&lt;/P&gt;&lt;P&gt;data_temp:&lt;BR /&gt;LOAD * INLINE [&lt;BR /&gt;DealerID, Year, Month, YTDPartSales&lt;BR /&gt;10, 2018, 11, 250&lt;BR /&gt;20, 2018, 11, 430&lt;BR /&gt;30, 2018, 11, 320&lt;BR /&gt;40, 2018, 11, 280&lt;BR /&gt;50, 2018, 11, 356&lt;BR /&gt;10, 2018, 11, 65&lt;BR /&gt;30, 2018, 11, 25&lt;BR /&gt;10, 2018, 12, 350&lt;BR /&gt;20, 2018, 12, 387&lt;BR /&gt;30, 2018, 12, 398&lt;BR /&gt;40, 2018, 12, 260&lt;BR /&gt;50, 2018, 12, 401&lt;BR /&gt;40, 2018, 12, 156&lt;BR /&gt;10, 2019, 1, 253&lt;BR /&gt;20, 2019, 1, 189&lt;BR /&gt;30, 2019, 1, 350&lt;BR /&gt;40, 2019, 1, 421&lt;BR /&gt;30, 2019, 1, 61&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;NoConcatenate&lt;BR /&gt;Data_1:&lt;BR /&gt;load&lt;BR /&gt;DealerID,&lt;BR /&gt;Year,&lt;BR /&gt;Month,&lt;BR /&gt;sum(YTDPartSales) as Total_YTDPartSales&lt;BR /&gt;Resident data_temp&lt;BR /&gt;group by&lt;BR /&gt;DealerID,&lt;BR /&gt;Year,&lt;BR /&gt;Month;&lt;/P&gt;&lt;P&gt;drop table data_temp;&lt;/P&gt;&lt;P&gt;NoConcatenate&lt;BR /&gt;Data:&lt;BR /&gt;load *,&lt;BR /&gt;AutoNumber(DealerID,Year&amp;amp;Month) as Rank&lt;BR /&gt;Resident Data_1&lt;BR /&gt;Order by Year,Month,Total_YTDPartSales desc;&lt;/P&gt;&lt;P&gt;Drop table Data_1;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Sun, 24 Feb 2019 04:03:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/create-monthly-ranks/m-p/1548385#M598382</guid>
      <dc:creator>joseph_morales</dc:creator>
      <dc:date>2019-02-24T04:03:41Z</dc:date>
    </item>
    <item>
      <title>Re: create monthly ranks</title>
      <link>https://community.qlik.com/t5/QlikView/create-monthly-ranks/m-p/1548652#M598383</link>
      <description>&lt;P&gt;Hey,&lt;/P&gt;&lt;P&gt;thats great. It works perfectly.&lt;/P&gt;&lt;P&gt;Now I have to create quartiles based on the ranks per year, month and group&lt;/P&gt;&lt;P&gt;If rank &amp;lt;=0.1*total&amp;nbsp;rankcount of that month&amp;nbsp;then quartile1,&lt;/P&gt;&lt;P&gt;If rank &amp;gt;=0.1*total&amp;nbsp;rankcount of that month&amp;nbsp;then quartile2&lt;/P&gt;&lt;P&gt;Based on the built&amp;nbsp;Quartiles&amp;nbsp; I have to calculate the average of those quartiles per year, month and group&lt;/P&gt;&lt;P&gt;Do you know how to do it?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Feb 2019 11:10:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/create-monthly-ranks/m-p/1548652#M598383</guid>
      <dc:creator>sabmaldun</dc:creator>
      <dc:date>2019-02-25T11:10:25Z</dc:date>
    </item>
  </channel>
</rss>

