<?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 How to sort a top N when using calculated dimension? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-sort-a-top-N-when-using-calculated-dimension/m-p/233720#M85248</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Satish,&lt;/P&gt;&lt;P&gt;I have seen your application. How can I make the default 4 to a input from user.&lt;/P&gt;&lt;P&gt;When I am trying to use a variable its not working.&lt;/P&gt;&lt;P&gt;Deepak&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 09 Feb 2010 10:42:51 GMT</pubDate>
    <dc:creator>deepakk</dc:creator>
    <dc:date>2010-02-09T10:42:51Z</dc:date>
    <item>
      <title>How to sort a top N when using calculated dimension?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-sort-a-top-N-when-using-calculated-dimension/m-p/233716#M85244</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 need to display the top N products by years in a bar chart and group the remaining products as 'other products'.&lt;/P&gt;&lt;P&gt;In order to do that, i'm using aggr() function in calculated dimension:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE ___default_attr="plain" class="jive_text_macro jive_macro_code" jivemacro="code"&gt;=aggr(if(rank(sum(Sales))&amp;lt;5, Product,'Other products'),Product)&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;This is working properly but the issue is that i'm not able to sort those products. I tried different formulas as sorting expression in the chart without any success...&lt;/P&gt;&lt;P&gt;Any idea on how to perform a sort here? (see the qvw attached)&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Feb 2010 16:33:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-sort-a-top-N-when-using-calculated-dimension/m-p/233716#M85244</guid>
      <dc:creator />
      <dc:date>2010-02-08T16:33:14Z</dc:date>
    </item>
    <item>
      <title>How to sort a top N when using calculated dimension?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-sort-a-top-N-when-using-calculated-dimension/m-p/233717#M85245</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI&lt;/P&gt;&lt;P&gt;Please find the attachements.&lt;/P&gt;&lt;P&gt;I think it ll helpful for u.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sathish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Feb 2010 19:15:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-sort-a-top-N-when-using-calculated-dimension/m-p/233717#M85245</guid>
      <dc:creator>sathishkumar_go</dc:creator>
      <dc:date>2010-02-08T19:15:10Z</dc:date>
    </item>
    <item>
      <title>How to sort a top N when using calculated dimension?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-sort-a-top-N-when-using-calculated-dimension/m-p/233718#M85246</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I used the same approach for one of my tables. Is there a way to have the 'Others' bucket always display after the top N are sorted and displayed? This is the issue I am facing now.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Feb 2010 21:54:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-sort-a-top-N-when-using-calculated-dimension/m-p/233718#M85246</guid>
      <dc:creator />
      <dc:date>2010-02-08T21:54:03Z</dc:date>
    </item>
    <item>
      <title>How to sort a top N when using calculated dimension?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-sort-a-top-N-when-using-calculated-dimension/m-p/233719#M85247</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;It's easy to sort by Y-value when only one dimension is used. But my problem is more with the bar chart where "Year" is the first dimension and the aggr() dimension the second one.&lt;/P&gt;&lt;P&gt;In this case, the second dimension can be sorted using a specific "expression" but i'm not able to find the right formula. Whatever the expression i use, it has no effect on the product sorting in the bar chart.&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Feb 2010 10:03:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-sort-a-top-N-when-using-calculated-dimension/m-p/233719#M85247</guid>
      <dc:creator />
      <dc:date>2010-02-09T10:03:57Z</dc:date>
    </item>
    <item>
      <title>How to sort a top N when using calculated dimension?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-sort-a-top-N-when-using-calculated-dimension/m-p/233720#M85248</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Satish,&lt;/P&gt;&lt;P&gt;I have seen your application. How can I make the default 4 to a input from user.&lt;/P&gt;&lt;P&gt;When I am trying to use a variable its not working.&lt;/P&gt;&lt;P&gt;Deepak&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Feb 2010 10:42:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-sort-a-top-N-when-using-calculated-dimension/m-p/233720#M85248</guid>
      <dc:creator>deepakk</dc:creator>
      <dc:date>2010-02-09T10:42:51Z</dc:date>
    </item>
    <item>
      <title>How to sort a top N when using calculated dimension?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-sort-a-top-N-when-using-calculated-dimension/m-p/233721#M85249</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;In order to make the default 4 as an input, the only thing you need is to replace the 4 by the name of a variable in the calculated dimension expression. Then create an input box for this variable so that the user can change its value.&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Feb 2010 10:56:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-sort-a-top-N-when-using-calculated-dimension/m-p/233721#M85249</guid>
      <dc:creator />
      <dc:date>2010-02-09T10:56:00Z</dc:date>
    </item>
    <item>
      <title>How to sort a top N when using calculated dimension?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-sort-a-top-N-when-using-calculated-dimension/m-p/233722#M85250</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I got it... I was making a small error in setting the variable.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Feb 2010 11:48:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-sort-a-top-N-when-using-calculated-dimension/m-p/233722#M85250</guid>
      <dc:creator>deepakk</dc:creator>
      <dc:date>2010-02-09T11:48:25Z</dc:date>
    </item>
    <item>
      <title>How to sort a top N when using calculated dimension?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-sort-a-top-N-when-using-calculated-dimension/m-p/233723#M85251</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;My problem is not solved. Any idea on how to sort when the second chart dimension is calculated dimension with aggr() function? (see bar chart in the initial post).&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Feb 2010 09:40:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-sort-a-top-N-when-using-calculated-dimension/m-p/233723#M85251</guid>
      <dc:creator />
      <dc:date>2010-02-16T09:40:22Z</dc:date>
    </item>
  </channel>
</rss>

