<?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 Limit to top 10% in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Limit-to-top-10/m-p/227626#M79730</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using set analysis to collect data for a dimension going back vLowUsageDayBack days from today, which is working well.&lt;/P&gt;&lt;P&gt;sum( {$ &amp;lt; RollupDate = {'&amp;gt;=$(=date(Today()-vLowUsageDaysBack))'} &amp;gt;}&lt;BR /&gt; RollupNetworkSessionTotalBytes/ vOneGigaByte )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to further limit it such that only the top X% are included. For example if there are 100 and percentage is set to 10% I only want the top 10.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 20 Jul 2010 00:02:28 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-07-20T00:02:28Z</dc:date>
    <item>
      <title>Limit to top 10%</title>
      <link>https://community.qlik.com/t5/QlikView/Limit-to-top-10/m-p/227626#M79730</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using set analysis to collect data for a dimension going back vLowUsageDayBack days from today, which is working well.&lt;/P&gt;&lt;P&gt;sum( {$ &amp;lt; RollupDate = {'&amp;gt;=$(=date(Today()-vLowUsageDaysBack))'} &amp;gt;}&lt;BR /&gt; RollupNetworkSessionTotalBytes/ vOneGigaByte )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to further limit it such that only the top X% are included. For example if there are 100 and percentage is set to 10% I only want the top 10.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Jul 2010 00:02:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Limit-to-top-10/m-p/227626#M79730</guid>
      <dc:creator />
      <dc:date>2010-07-20T00:02:28Z</dc:date>
    </item>
    <item>
      <title>Limit to top 10%</title>
      <link>https://community.qlik.com/t5/QlikView/Limit-to-top-10/m-p/227627#M79731</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you share us some sample data to more clarify your requirement?&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Shumail&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Jul 2010 12:00:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Limit-to-top-10/m-p/227627#M79731</guid>
      <dc:creator>shumailh</dc:creator>
      <dc:date>2010-07-21T12:00:37Z</dc:date>
    </item>
    <item>
      <title>Limit to top 10%</title>
      <link>https://community.qlik.com/t5/QlikView/Limit-to-top-10/m-p/227628#M79732</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Using sum( {$ &amp;lt; RollupDate = {'&amp;gt;=$(=date(Today()-vLowUsageDaysBack))'} &amp;gt;}&lt;BR /&gt; RollupNetworkSessionTotalBytes/ vOneGigaByte ) to sum bytes by dimension users I get 100 users in the chart.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;U1 - 1,000,000&lt;BR /&gt;U2 - 999,000&lt;BR /&gt;U3 - 888,000&lt;BR /&gt;U5 - 777,000&lt;BR /&gt;U5 - 666,000&lt;/P&gt;&lt;P&gt;etc....&lt;/P&gt;&lt;P&gt;U99 - 10&lt;BR /&gt;U100 - 1&lt;/P&gt;&lt;P&gt;I only want to display the top 5% in the chart (U1, U2, U3, U4, &amp;amp; U5)&lt;/P&gt;&lt;P&gt;How do I do this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Jul 2010 19:35:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Limit-to-top-10/m-p/227628#M79732</guid>
      <dc:creator />
      <dc:date>2010-07-21T19:35:34Z</dc:date>
    </item>
    <item>
      <title>Limit to top 10%</title>
      <link>https://community.qlik.com/t5/QlikView/Limit-to-top-10/m-p/227629#M79733</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hard to imagine without the data and taking a wild guess here:&lt;/P&gt;&lt;P&gt;I would try to create a variable that works out the actual number of users that need to be returned: Count(Users)/100*percentage required(5 or 10 etc.). Then use round() to bring it up to whole number. You then might be able to use the variable in a Rank expression.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Tongue Tied" src="http://community.qlik.com/emoticons/emotion-7.gif" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Jul 2010 10:16:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Limit-to-top-10/m-p/227629#M79733</guid>
      <dc:creator>nathanfurby</dc:creator>
      <dc:date>2010-07-22T10:16:42Z</dc:date>
    </item>
    <item>
      <title>Limit to top 10%</title>
      <link>https://community.qlik.com/t5/QlikView/Limit-to-top-10/m-p/227630#M79734</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As Nathan says you might want to look at variables and Rank().&lt;/P&gt;&lt;P&gt;Something along the lines of:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;if(&lt;BR /&gt; rank(sum( {$ &amp;lt; RollupDate = {'&amp;gt;=$(=date(Today()-vLowUsageDaysBack))'} &amp;gt;} RollupNetworkSessionTotalBytes/ vOneGigaByte ))&amp;lt;=$(VARIABLE),&lt;BR /&gt; sum( {$ &amp;lt; RollupDate = {'&amp;gt;=$(=date(Today()-vLowUsageDaysBack))'} &amp;gt;} RollupNetworkSessionTotalBytes/ vOneGigaByte )&lt;BR /&gt;)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Where you insert a number into the VARIABLE, for example 10 to show the top 10 ranking values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Jul 2010 10:27:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Limit-to-top-10/m-p/227630#M79734</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-07-22T10:27:46Z</dc:date>
    </item>
    <item>
      <title>Limit to top 10%</title>
      <link>https://community.qlik.com/t5/QlikView/Limit-to-top-10/m-p/227631#M79735</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Johannes can you help me as I am looking for something different.&lt;/P&gt;&lt;P&gt;Lets say my data is like following&lt;/P&gt;&lt;P&gt;Ind PDT Rev&lt;/P&gt;&lt;P&gt;A AB 40&lt;/P&gt;&lt;P&gt;A AC 60&lt;/P&gt;&lt;P&gt;A BC 20&lt;/P&gt;&lt;P&gt;A BD 40&lt;/P&gt;&lt;P&gt;A AD 30&lt;/P&gt;&lt;P&gt;B AB 25&lt;/P&gt;&lt;P&gt;B AC 35&lt;/P&gt;&lt;P&gt;B AD 40&lt;/P&gt;&lt;P&gt;C AC 60&lt;/P&gt;&lt;P&gt;C BC 80&lt;/P&gt;&lt;P&gt;C BD 30&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I want to make a chart representing only those top PDT which are contributing top 80% of the Rev for particular Ind. Like for Ind A i want only AB, AC and BC to be displayed in the chart&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Feb 2011 08:58:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Limit-to-top-10/m-p/227631#M79735</guid>
      <dc:creator />
      <dc:date>2011-02-10T08:58:08Z</dc:date>
    </item>
  </channel>
</rss>

