<?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: Display top 3 customers in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Display-top-3-customers/m-p/537929#M1139461</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Try This,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=aggr(if(rank(sum(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Deposit_Amt-Withdrawl_Amt&lt;/SPAN&gt;))&amp;lt;=3,Customer),Customer)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 10 Oct 2013 05:47:43 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-10-10T05:47:43Z</dc:date>
    <item>
      <title>Display top 3 customers</title>
      <link>https://community.qlik.com/t5/QlikView/Display-top-3-customers/m-p/537925#M1139454</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;I want to get top 3 customers based on total balance(deposit column - withdrawl column) I have used Rank function where em getting all ranks based on total balance. Where highest balance takes highest rank number.&lt;/P&gt;&lt;P&gt;Ex: 10 refers to highest total balance.&lt;/P&gt;&lt;P&gt;I have used&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; below code in expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Rank((&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Deposit_Amt&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; - &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Withdrawl_Amt&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;),4,0) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;How can I refine it to get top 3 based on highest bal?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Prajna&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Oct 2013 05:30:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Display-top-3-customers/m-p/537925#M1139454</guid>
      <dc:creator />
      <dc:date>2013-10-10T05:30:24Z</dc:date>
    </item>
    <item>
      <title>Re: Display top 3 customers</title>
      <link>https://community.qlik.com/t5/QlikView/Display-top-3-customers/m-p/537926#M1139455</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rank(Expression)&amp;lt;=3&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Oct 2013 05:32:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Display-top-3-customers/m-p/537926#M1139455</guid>
      <dc:creator>saumyashah90</dc:creator>
      <dc:date>2013-10-10T05:32:40Z</dc:date>
    </item>
    <item>
      <title>Re: Display top 3 customers</title>
      <link>https://community.qlik.com/t5/QlikView/Display-top-3-customers/m-p/537927#M1139458</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;I had tried that but it doesn't work.. can u tell me what expression refers to&lt;/P&gt;&lt;P&gt;I Tried&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Rank ((&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Deposit_Amt&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; - &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Withdrawl_Amt&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;),4,0)&amp;lt;=3 &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;as well as&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Rank((&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Deposit_Amt&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; - &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Withdrawl_Amt&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)) &amp;lt;=3 &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;earlier.. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/sad.png" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Prajna &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Oct 2013 05:36:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Display-top-3-customers/m-p/537927#M1139458</guid>
      <dc:creator />
      <dc:date>2013-10-10T05:36:55Z</dc:date>
    </item>
    <item>
      <title>Re: Display top 3 customers</title>
      <link>https://community.qlik.com/t5/QlikView/Display-top-3-customers/m-p/537928#M1139460</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If(AGGR(Rank((Deposit_Amt-Withdrawl_Amt)),Customer)&amp;lt;=3,Customer)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Oct 2013 05:38:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Display-top-3-customers/m-p/537928#M1139460</guid>
      <dc:creator>saumyashah90</dc:creator>
      <dc:date>2013-10-10T05:38:19Z</dc:date>
    </item>
    <item>
      <title>Re: Display top 3 customers</title>
      <link>https://community.qlik.com/t5/QlikView/Display-top-3-customers/m-p/537929#M1139461</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Try This,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=aggr(if(rank(sum(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Deposit_Amt-Withdrawl_Amt&lt;/SPAN&gt;))&amp;lt;=3,Customer),Customer)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Oct 2013 05:47:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Display-top-3-customers/m-p/537929#M1139461</guid>
      <dc:creator />
      <dc:date>2013-10-10T05:47:43Z</dc:date>
    </item>
    <item>
      <title>Re: Display top 3 customers</title>
      <link>https://community.qlik.com/t5/QlikView/Display-top-3-customers/m-p/537930#M1139462</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;This works fine.. but how can I get rank in display in my chart like 1,2,3 for top 3? where 1 is the highest?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Prajna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Oct 2013 05:55:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Display-top-3-customers/m-p/537930#M1139462</guid>
      <dc:creator />
      <dc:date>2013-10-10T05:55:15Z</dc:date>
    </item>
    <item>
      <title>Re: Display top 3 customers</title>
      <link>https://community.qlik.com/t5/QlikView/Display-top-3-customers/m-p/537931#M1139463</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;This gives wrong result&amp;nbsp; &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/sad.png" /&gt; &lt;/P&gt;&lt;P&gt;As suggested this works fine&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Rank (&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;AGGR&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Rank&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;((&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Deposit_Amt&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;-&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Withdrawl_Amt&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)),&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Cust_Id&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)&amp;lt;=3,&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Cust_Id&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;but it doesn't display rank value&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Prajna&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Oct 2013 06:04:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Display-top-3-customers/m-p/537931#M1139463</guid>
      <dc:creator />
      <dc:date>2013-10-10T06:04:05Z</dc:date>
    </item>
    <item>
      <title>Re: Display top 3 customers</title>
      <link>https://community.qlik.com/t5/QlikView/Display-top-3-customers/m-p/537932#M1139464</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just sort it&lt;BR /&gt;Suppose your expression name is Top3Customers so go to sort and under Numeric show ascending or descending&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Oct 2013 06:49:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Display-top-3-customers/m-p/537932#M1139464</guid>
      <dc:creator>saumyashah90</dc:creator>
      <dc:date>2013-10-10T06:49:30Z</dc:date>
    </item>
    <item>
      <title>Re: Display top 3 customers</title>
      <link>https://community.qlik.com/t5/QlikView/Display-top-3-customers/m-p/537933#M1139465</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The customer specified in the code&lt;/P&gt;&lt;P&gt;If(AGGR(Rank((Deposit_Amt-Withdrawl_Amt)),&lt;STRONG&gt;Customer&lt;/STRONG&gt;)&amp;lt;=3,&lt;STRONG&gt;Customer&lt;/STRONG&gt;)&lt;/P&gt;&lt;P&gt;cant it be customer name any constraint like return type should be int as we have agg ?And one more thing cant I get a display like Rank 1, Rank 2, Rank 3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Prajna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Oct 2013 07:02:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Display-top-3-customers/m-p/537933#M1139465</guid>
      <dc:creator />
      <dc:date>2013-10-10T07:02:43Z</dc:date>
    </item>
    <item>
      <title>Re: Display top 3 customers</title>
      <link>https://community.qlik.com/t5/QlikView/Display-top-3-customers/m-p/537934#M1139466</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try using 'Rank'&amp;amp;Autonumber(Customers) as Rank&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Oct 2013 07:17:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Display-top-3-customers/m-p/537934#M1139466</guid>
      <dc:creator>saumyashah90</dc:creator>
      <dc:date>2013-10-10T07:17:18Z</dc:date>
    </item>
    <item>
      <title>Re: Display top 3 customers</title>
      <link>https://community.qlik.com/t5/QlikView/Display-top-3-customers/m-p/537935#M1139467</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please mark it helpful if it really was&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Oct 2013 07:19:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Display-top-3-customers/m-p/537935#M1139467</guid>
      <dc:creator>saumyashah90</dc:creator>
      <dc:date>2013-10-10T07:19:59Z</dc:date>
    </item>
    <item>
      <title>Re: Display top 3 customers</title>
      <link>https://community.qlik.com/t5/QlikView/Display-top-3-customers/m-p/537936#M1139469</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;The rank expression u had mentioned gives overall rank .&lt;/P&gt;&lt;P&gt;If I add year as a dimension rank is not varying w.r.t year.. its constant for all the year chosen. What could be done?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Prajna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Oct 2013 07:28:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Display-top-3-customers/m-p/537936#M1139469</guid>
      <dc:creator />
      <dc:date>2013-10-10T07:28:30Z</dc:date>
    </item>
    <item>
      <title>Re: Display top 3 customers</title>
      <link>https://community.qlik.com/t5/QlikView/Display-top-3-customers/m-p/537937#M1139471</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You should not year in dimension.that doesnt make sense&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;make it as a filter and if customer data is associated with the date field than it should make the difference&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Oct 2013 07:31:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Display-top-3-customers/m-p/537937#M1139471</guid>
      <dc:creator>saumyashah90</dc:creator>
      <dc:date>2013-10-10T07:31:26Z</dc:date>
    </item>
    <item>
      <title>Re: Display top 3 customers</title>
      <link>https://community.qlik.com/t5/QlikView/Display-top-3-customers/m-p/537938#M1139473</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;Year,month is my selection criteria I have taken cyclic drill to get the same. Based on that i want my ranks to be displayed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Prajna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Oct 2013 07:39:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Display-top-3-customers/m-p/537938#M1139473</guid>
      <dc:creator />
      <dc:date>2013-10-10T07:39:09Z</dc:date>
    </item>
  </channel>
</rss>

