<?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: urgent help required on rank function in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/urgent-help-required-on-rank-function/m-p/928447#M951708</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;Try Alt() function like below, it will replace with the given value(0) if expression value is null&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;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;=NUM(RANK(&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;Alt(SUM({&amp;lt;MonthYear =,Date=&amp;nbsp; {"&amp;gt;=$(=date(MonthStart(vMaxSalesDate)))&amp;lt;=$(=date(vMaxSalesDate))"}&amp;gt;}Sales)&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;/&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;SUM ({&amp;lt;MonthYear =,Date=&amp;nbsp; {"&amp;gt;=$(=date(MonthStart(vMaxSalesDate)))&amp;lt;=$(=date(vMaxSalesDate))"}&amp;gt;}Quantity), 0)))&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;Hope this helps you.&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;Regards,&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;Jagan.&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 03 Dec 2015 03:53:17 GMT</pubDate>
    <dc:creator>jagan</dc:creator>
    <dc:date>2015-12-03T03:53:17Z</dc:date>
    <item>
      <title>urgent help required on rank function</title>
      <link>https://community.qlik.com/t5/QlikView/urgent-help-required-on-rank-function/m-p/928444#M951705</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have the following expression:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;NUM(RANK(&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SUM({&amp;lt;MonthYear =,Date=&amp;nbsp; {"&amp;gt;=$(=date(MonthStart(vMaxSalesDate)))&amp;lt;=$(=date(vMaxSalesDate))"}&amp;gt;}Sales)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;/&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SUM ({&amp;lt;MonthYear =,Date=&amp;nbsp; {"&amp;gt;=$(=date(MonthStart(vMaxSalesDate)))&amp;lt;=$(=date(vMaxSalesDate))"}&amp;gt;}Quantity)))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;there is no error in the expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have 100 branches sales &amp;amp; quantity. i need to calculate the rank for every branch using above expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it ranks fine. but the problem is... if any branch has no sales, then the rank is giving null value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how can i avoid null ranks. instead of this null, i need to replace with the last rank.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i tried with Rangemax(expr,0), but that doesnt help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pls give some suggestions to fix this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Dec 2015 11:57:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/urgent-help-required-on-rank-function/m-p/928444#M951705</guid>
      <dc:creator />
      <dc:date>2015-12-01T11:57:24Z</dc:date>
    </item>
    <item>
      <title>Re: urgent help required on rank function</title>
      <link>https://community.qlik.com/t5/QlikView/urgent-help-required-on-rank-function/m-p/928445#M951706</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try below expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=NUM(RANK(&lt;/P&gt;&lt;P&gt;alt(SUM({&amp;lt;MonthYear =,Date=&amp;nbsp; {"&amp;gt;=$(=date(MonthStart(vMaxSalesDate)))&amp;lt;=$(=date(vMaxSalesDate))"}&amp;gt;}Sales),0)&lt;/P&gt;&lt;P&gt;/&lt;/P&gt;&lt;P&gt;alt(SUM ({&amp;lt;MonthYear =,Date=&amp;nbsp; {"&amp;gt;=$(=date(MonthStart(vMaxSalesDate)))&amp;lt;=$(=date(vMaxSalesDate))"}&amp;gt;}Quantity),0)))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Dec 2015 12:07:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/urgent-help-required-on-rank-function/m-p/928445#M951706</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2015-12-01T12:07:17Z</dc:date>
    </item>
    <item>
      <title>Re: urgent help required on rank function</title>
      <link>https://community.qlik.com/t5/QlikView/urgent-help-required-on-rank-function/m-p/928446#M951707</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think the issue is caused by the division by zero.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Assuming that your division always results in positive numbers, you need to replace the division result in case of missing records with zero to get a maximum rank number:&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;NUM(RANK(&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;ALT(&lt;/STRONG&gt;&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;MonthYear =,Date=&amp;nbsp; {"&amp;gt;=$(=date(MonthStart(vMaxSalesDate)))&amp;lt;=$(=date(vMaxSalesDate))"}&amp;gt;}Sales)&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;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;SUM ({&amp;lt;MonthYear =,Date=&amp;nbsp; {"&amp;gt;=$(=date(MonthStart(vMaxSalesDate)))&amp;lt;=$(=date(vMaxSalesDate))"}&amp;gt;}Quantity)&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;,0)&lt;/STRONG&gt;&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>Tue, 01 Dec 2015 18:01:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/urgent-help-required-on-rank-function/m-p/928446#M951707</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-12-01T18:01:54Z</dc:date>
    </item>
    <item>
      <title>Re: urgent help required on rank function</title>
      <link>https://community.qlik.com/t5/QlikView/urgent-help-required-on-rank-function/m-p/928447#M951708</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;Try Alt() function like below, it will replace with the given value(0) if expression value is null&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;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;=NUM(RANK(&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;Alt(SUM({&amp;lt;MonthYear =,Date=&amp;nbsp; {"&amp;gt;=$(=date(MonthStart(vMaxSalesDate)))&amp;lt;=$(=date(vMaxSalesDate))"}&amp;gt;}Sales)&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;/&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;SUM ({&amp;lt;MonthYear =,Date=&amp;nbsp; {"&amp;gt;=$(=date(MonthStart(vMaxSalesDate)))&amp;lt;=$(=date(vMaxSalesDate))"}&amp;gt;}Quantity), 0)))&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;Hope this helps you.&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;Regards,&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;Jagan.&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Dec 2015 03:53:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/urgent-help-required-on-rank-function/m-p/928447#M951708</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2015-12-03T03:53:17Z</dc:date>
    </item>
  </channel>
</rss>

