<?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: Calculate rank based on current month vs previous month in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Calculate-rank-based-on-current-month-vs-previous-month/m-p/1042406#M940824</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure what you are telling me or what you are trying to do.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you upload a &lt;EM&gt;small&lt;/EM&gt; sample QVW and describe based on your sample the requested result?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 03 Feb 2016 15:57:10 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2016-02-03T15:57:10Z</dc:date>
    <item>
      <title>Calculate rank based on current month vs previous month</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-rank-based-on-current-month-vs-previous-month/m-p/1042401#M940819</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Greetings&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help to obtain the desired result for calculating ranks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to rank the products based on the difference of current month and prior month.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(sum({&amp;lt;product= {"=rank(sum(qty), product&amp;lt;=$(vRank)"}, year = 2016&amp;nbsp; , month = 2 &amp;gt;}&amp;nbsp; qty)&amp;nbsp; ) &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -&lt;/P&gt;&lt;P&gt;(sum({&amp;lt;product= {"=rank(sum(qty), product&amp;lt;=$(vRank)"}, year = 2016&amp;nbsp; , month = 1 &amp;gt;}&amp;nbsp; qty)&amp;nbsp; )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Feb 2016 15:29:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-rank-based-on-current-month-vs-previous-month/m-p/1042401#M940819</guid>
      <dc:creator />
      <dc:date>2016-02-03T15:29:31Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate rank based on current month vs previous month</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-rank-based-on-current-month-vs-previous-month/m-p/1042402#M940820</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, I don't understand.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is not correct syntax:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;{"=rank(sum(qty), product&amp;lt;=$(vRank)"}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Maybe you want&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;{"=rank(sum(qty))&amp;lt;=$(vRank)"}&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Feb 2016 15:31:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-rank-based-on-current-month-vs-previous-month/m-p/1042402#M940820</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-02-03T15:31:11Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate rank based on current month vs previous month</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-rank-based-on-current-month-vs-previous-month/m-p/1042403#M940821</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for responding.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The rank must based on the difference of qty of Month 2 and 1.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Feb 2016 15:32:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-rank-based-on-current-month-vs-previous-month/m-p/1042403#M940821</guid>
      <dc:creator />
      <dc:date>2016-02-03T15:32:48Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate rank based on current month vs previous month</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-rank-based-on-current-month-vs-previous-month/m-p/1042404#M940822</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe create a straight table with dimension product and as expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;=Rank(&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;(sum({&amp;lt; year = 2016&amp;nbsp; , month = 2 &amp;gt;}&amp;nbsp; qty)&amp;nbsp; )&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;(sum({&amp;lt; year = 2016&amp;nbsp; , month = 1 &amp;gt;}&amp;nbsp; qty)&amp;nbsp; )&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Feb 2016 15:35:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-rank-based-on-current-month-vs-previous-month/m-p/1042404#M940822</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-02-03T15:35:36Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate rank based on current month vs previous month</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-rank-based-on-current-month-vs-previous-month/m-p/1042405#M940823</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;It's working if the default selection is for all.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I calculate for top N then not working.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Feb 2016 15:55:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-rank-based-on-current-month-vs-previous-month/m-p/1042405#M940823</guid>
      <dc:creator />
      <dc:date>2016-02-03T15:55:03Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate rank based on current month vs previous month</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-rank-based-on-current-month-vs-previous-month/m-p/1042406#M940824</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure what you are telling me or what you are trying to do.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you upload a &lt;EM&gt;small&lt;/EM&gt; sample QVW and describe based on your sample the requested result?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Feb 2016 15:57:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-rank-based-on-current-month-vs-previous-month/m-p/1042406#M940824</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-02-03T15:57:10Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate rank based on current month vs previous month</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-rank-based-on-current-month-vs-previous-month/m-p/1042407#M940825</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would like to achieve the TOP 5 products based on the differences.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please find attach the sample qvw file.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Feb 2016 20:25:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-rank-based-on-current-month-vs-previous-month/m-p/1042407#M940825</guid>
      <dc:creator />
      <dc:date>2016-02-03T20:25:20Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate rank based on current month vs previous month</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-rank-based-on-current-month-vs-previous-month/m-p/1042408#M940826</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe like this&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Feb 2016 20:33:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-rank-based-on-current-month-vs-previous-month/m-p/1042408#M940826</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-02-03T20:33:30Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate rank based on current month vs previous month</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-rank-based-on-current-month-vs-previous-month/m-p/1042409#M940827</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If I will select top 6 then the result is showing incorrect.&lt;/P&gt;&lt;P&gt;Please find below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="113499" alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/113499_Capture.PNG" style="height: 288px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Feb 2016 20:55:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-rank-based-on-current-month-vs-previous-month/m-p/1042409#M940827</guid>
      <dc:creator />
      <dc:date>2016-02-03T20:55:59Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate rank based on current month vs previous month</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-rank-based-on-current-month-vs-previous-month/m-p/1042410#M940828</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your are still using the old&amp;nbsp; buggy expression, use&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff8000; font-size: 8pt; text-decoration: underline;"&gt;&lt;STRONG&gt;(&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({&amp;lt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;year&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = {&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;$(vMaxYear)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;}, &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;month&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;= {&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;$(vMaxMth)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;}&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;qty&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)&amp;nbsp; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #ff8000; font-size: 8pt; text-decoration: underline;"&gt;)&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp; -&lt;BR /&gt; (&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({&amp;lt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;year&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = {&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;$(vMaxYear)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;}, &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;month&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;= {&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;$(vLstMth)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;}&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;qty&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) ) &lt;BR /&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;instead.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Feb 2016 21:01:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-rank-based-on-current-month-vs-previous-month/m-p/1042410#M940828</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-02-03T21:01:10Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate rank based on current month vs previous month</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-rank-based-on-current-month-vs-previous-month/m-p/1042411#M940829</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Many thanks! It's Working. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Feb 2016 21:22:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-rank-based-on-current-month-vs-previous-month/m-p/1042411#M940829</guid>
      <dc:creator />
      <dc:date>2016-02-03T21:22:46Z</dc:date>
    </item>
  </channel>
</rss>

