<?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: Top performers in a text box in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Top-performers-in-a-text-box/m-p/691651#M250305</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I used your formula in this way and it worked for me:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=' Top 10 = ' &amp;amp; (Sum({&amp;lt;Customer= {“=rank(sum(DOLLAR),4)&amp;lt;=10”}&amp;gt;} DOLLAR))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All you should need is =(&lt;SPAN style="color: #ff6600; font-size: 8pt; font-family: courier new,courier;"&gt;with your formula here&lt;/SPAN&gt;)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 31 Jul 2014 14:30:22 GMT</pubDate>
    <dc:creator>lawrenceiow</dc:creator>
    <dc:date>2014-07-31T14:30:22Z</dc:date>
    <item>
      <title>Top performers in a text box</title>
      <link>https://community.qlik.com/t5/QlikView/Top-performers-in-a-text-box/m-p/691650#M250304</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;I have been facing in a problem wherein I have to show the sum of sales of top 10 customers in a text box. I tried it using rank in set analysis using the expression:&lt;/P&gt;&lt;P&gt;= Sum({&amp;lt;Customer= {“=rank(sum(DOLLAR),4)&amp;lt;=10”}&amp;gt;} DOLLAR) .&lt;/P&gt;&lt;P&gt;But I found out that this function works only in the Expression part of a chart and not in a text object&lt;/P&gt;&lt;P&gt;I also found out a way in which I could get the sales of customer having 10th rank:&lt;/P&gt;&lt;P&gt;=max((Aggr(sum(DOLLAR), Customer)),10) &lt;/P&gt;&lt;P&gt;I could use this for 1,2,..10 ranks and get a sum of it but I dont want to use I need to show a similar data for top 100 and 1000 customers as well and this is not a scalable approach.&lt;/P&gt;&lt;P&gt;Needed a help on how to achive the above functionality.&lt;/P&gt;&lt;P&gt;Thanks in Advance&lt;/P&gt;&lt;P&gt;Himanshu Gupta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Jul 2014 14:17:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Top-performers-in-a-text-box/m-p/691650#M250304</guid>
      <dc:creator />
      <dc:date>2014-07-31T14:17:56Z</dc:date>
    </item>
    <item>
      <title>Re: Top performers in a text box</title>
      <link>https://community.qlik.com/t5/QlikView/Top-performers-in-a-text-box/m-p/691651#M250305</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I used your formula in this way and it worked for me:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=' Top 10 = ' &amp;amp; (Sum({&amp;lt;Customer= {“=rank(sum(DOLLAR),4)&amp;lt;=10”}&amp;gt;} DOLLAR))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All you should need is =(&lt;SPAN style="color: #ff6600; font-size: 8pt; font-family: courier new,courier;"&gt;with your formula here&lt;/SPAN&gt;)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Jul 2014 14:30:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Top-performers-in-a-text-box/m-p/691651#M250305</guid>
      <dc:creator>lawrenceiow</dc:creator>
      <dc:date>2014-07-31T14:30:22Z</dc:date>
    </item>
    <item>
      <title>Re: Top performers in a text box</title>
      <link>https://community.qlik.com/t5/QlikView/Top-performers-in-a-text-box/m-p/691652#M250306</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Himanshu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use below expression in the Textbox:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=SUM(Aggr(IF(Aggr(Rank(SUM(Dollar)),Customer)&amp;lt;=10,SUM(Dollar)),Customer))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Instead of 10, you can create an input variable with vTOP and use $(vTOP).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=SUM(Aggr(IF(Aggr(Rank(SUM(Dollar)),Customer)&amp;lt;=$(vTOP),SUM(Dollar)),Customer))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Sabal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Jul 2014 14:40:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Top-performers-in-a-text-box/m-p/691652#M250306</guid>
      <dc:creator />
      <dc:date>2014-07-31T14:40:38Z</dc:date>
    </item>
  </channel>
</rss>

