<?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 N Values in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Display-Top-N-Values/m-p/1081623#M523521</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try something like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=If(GetSelectedCount( Name ) &amp;lt;=10,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Count({&amp;lt;Name = {"=Rank(Count(DISTINCT Field))&amp;lt;=10"}&amp;gt;} DISTINCT Field),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Count(DISTINCT Field)&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and disable the dimension limit option. You almost for sure need to adapt the set expression / rank function to use the correct measure for ranking. If you need more help on this, please post a small sample QVW, as Sunny suggested.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 28 Mar 2016 16:54:08 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2016-03-28T16:54:08Z</dc:date>
    <item>
      <title>Display Top N Values</title>
      <link>https://community.qlik.com/t5/QlikView/Display-Top-N-Values/m-p/1081621#M523519</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Need your help to resolve problem to display top 10 values in a line chart (which is achievable using dimension limits) but doing so chart always displays top 10 irrespective of the number of values selected in dimension field.&lt;/P&gt;&lt;P&gt;My requirement is to show top 10 by default but if more than 10 dimension values are selected chart should be displayed for all the values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My chart is having two dimensions (Month and Name) and one measure (count distinct).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help in this is highly appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;RG&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Mar 2016 16:04:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Display-Top-N-Values/m-p/1081621#M523519</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-03-28T16:04:44Z</dc:date>
    </item>
    <item>
      <title>Re: Display Top N Values</title>
      <link>https://community.qlik.com/t5/QlikView/Display-Top-N-Values/m-p/1081622#M523520</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is the expression you are currently using? Do you have a sample you can share?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Mar 2016 16:05:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Display-Top-N-Values/m-p/1081622#M523520</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-03-28T16:05:57Z</dc:date>
    </item>
    <item>
      <title>Re: Display Top N Values</title>
      <link>https://community.qlik.com/t5/QlikView/Display-Top-N-Values/m-p/1081623#M523521</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try something like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=If(GetSelectedCount( Name ) &amp;lt;=10,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Count({&amp;lt;Name = {"=Rank(Count(DISTINCT Field))&amp;lt;=10"}&amp;gt;} DISTINCT Field),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Count(DISTINCT Field)&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and disable the dimension limit option. You almost for sure need to adapt the set expression / rank function to use the correct measure for ranking. If you need more help on this, please post a small sample QVW, as Sunny suggested.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Mar 2016 16:54:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Display-Top-N-Values/m-p/1081623#M523521</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-03-28T16:54:08Z</dc:date>
    </item>
    <item>
      <title>Re: Display Top N Values</title>
      <link>https://community.qlik.com/t5/QlikView/Display-Top-N-Values/m-p/1081624#M523522</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for taking time to reply to my question but solution given by Swuehl worked and I am getting the required chart with that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;RG&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Mar 2016 20:33:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Display-Top-N-Values/m-p/1081624#M523522</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-03-28T20:33:01Z</dc:date>
    </item>
    <item>
      <title>Re: Display Top N Values</title>
      <link>https://community.qlik.com/t5/QlikView/Display-Top-N-Values/m-p/1081625#M523523</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Swuehl,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply and your solution worked and desired output is achieved.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Appreciate your time on this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;RG&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Mar 2016 20:34:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Display-Top-N-Values/m-p/1081625#M523523</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-03-28T20:34:22Z</dc:date>
    </item>
  </channel>
</rss>

