<?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: Sort top 10 by Month in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Sort-top-10-by-Month/m-p/449535#M167763</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jim,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not sure if it is what you need, but it may give you an idea...&lt;/P&gt;&lt;P&gt;I had a similar requirement, to show top 5 products by week, and order is different in each week, depending on rank wihtin a week.&amp;nbsp; The difference is I had a pivot table rather than bar chart.&amp;nbsp; And, I had to show the product names in the table, not any numbers.&lt;/P&gt;&lt;P&gt;Solution:&lt;/P&gt;&lt;P&gt;Created a field "R" as a logical island, with values from 1 to 5.&amp;nbsp; Used it as the first dimension, and Week as the second dimension.&amp;nbsp; Expression was like this:&lt;/P&gt;&lt;P&gt;aggr(if(rank(sum(Amount))=R,Product),R,Week,Product)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Formatted using Weeks as columns.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 19 Dec 2012 18:39:00 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2012-12-19T18:39:00Z</dc:date>
    <item>
      <title>Sort top 10 by Month</title>
      <link>https://community.qlik.com/t5/QlikView/Sort-top-10-by-Month/m-p/449531#M167759</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a chart that where I am trying to show the top 10 decending counts per month. as in image&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="26994" class="jive-image-thumbnail jive-image" onclick="" alt="Rev share.jpg" src="/legacyfs/online/26994_Rev share.jpg" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So the question is how do I select and sort so that each month has the months top 10 Items - is this possible? I have tried all kinds of aggrigations in the sort but suspect that I need to somehow select the top ten by monthin the expression&amp;nbsp; instead of accross all the data, but not sure how to do this.&lt;/P&gt;&lt;P&gt;Any help appreciated&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Dec 2012 17:16:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sort-top-10-by-Month/m-p/449531#M167759</guid>
      <dc:creator />
      <dc:date>2012-12-18T17:16:58Z</dc:date>
    </item>
    <item>
      <title>Re: Sort top 10 by Month</title>
      <link>https://community.qlik.com/t5/QlikView/Sort-top-10-by-Month/m-p/449532#M167760</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't think this is possible. As far as I know the order of the bars is always the same for every value of the axis dimension. So sorting within a month isn't possible.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Dec 2012 17:51:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sort-top-10-by-Month/m-p/449532#M167760</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2012-12-18T17:51:50Z</dc:date>
    </item>
    <item>
      <title>Re: Sort top 10 by Month</title>
      <link>https://community.qlik.com/t5/QlikView/Sort-top-10-by-Month/m-p/449533#M167761</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can control the dimension so that each month will only have bars for the top 10 value, but Gysbert is right that you can't sort it within each month by default. If you're still interested in going that route, you would create the following calculated dimension and check the "Suppress When Value is Null" checkbox: =aggr(if(rank(sum(Value),4,1)&amp;lt;=10,Dimension),Month,Dimension)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alternatively, you can get the behavior that you want by actually creating 10 expressions. See attached.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vlad&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Dec 2012 18:31:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sort-top-10-by-Month/m-p/449533#M167761</guid>
      <dc:creator>vgutkovsky</dc:creator>
      <dc:date>2012-12-18T18:31:07Z</dc:date>
    </item>
    <item>
      <title>Re: Sort top 10 by Month</title>
      <link>https://community.qlik.com/t5/QlikView/Sort-top-10-by-Month/m-p/449534#M167762</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for your replies.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vlad I have your example and I see that it works but can't seem to implement successfully for my chart.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;foy your chart you have :&lt;/P&gt;&lt;P&gt;aggr(&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;if(rank(sum(Value),4,1)=1,sum(Value)),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Month,Dimension&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for mine I have :&lt;/P&gt;&lt;P&gt;aggr(&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;if(rank(count([SR Close Timestamp]),4,1)=2,count([SR Close Timestamp])),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;[SR Close Fiscal Month Name],[SR Resolution Code]&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for each of the ites( I only added 3) but this is what I get:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="27096" class="jive-image-thumbnail jive-image" onclick="" alt="Sort by Dim.JPG" src="/legacyfs/online/27096_Sort by Dim.JPG" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I guess I am doing something worng here but cant see it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Dec 2012 17:37:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sort-top-10-by-Month/m-p/449534#M167762</guid>
      <dc:creator />
      <dc:date>2012-12-19T17:37:34Z</dc:date>
    </item>
    <item>
      <title>Re: Sort top 10 by Month</title>
      <link>https://community.qlik.com/t5/QlikView/Sort-top-10-by-Month/m-p/449535#M167763</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jim,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not sure if it is what you need, but it may give you an idea...&lt;/P&gt;&lt;P&gt;I had a similar requirement, to show top 5 products by week, and order is different in each week, depending on rank wihtin a week.&amp;nbsp; The difference is I had a pivot table rather than bar chart.&amp;nbsp; And, I had to show the product names in the table, not any numbers.&lt;/P&gt;&lt;P&gt;Solution:&lt;/P&gt;&lt;P&gt;Created a field "R" as a logical island, with values from 1 to 5.&amp;nbsp; Used it as the first dimension, and Week as the second dimension.&amp;nbsp; Expression was like this:&lt;/P&gt;&lt;P&gt;aggr(if(rank(sum(Amount))=R,Product),R,Week,Product)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Formatted using Weeks as columns.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Dec 2012 18:39:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sort-top-10-by-Month/m-p/449535#M167763</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-12-19T18:39:00Z</dc:date>
    </item>
    <item>
      <title>Re: Sort top 10 by Month</title>
      <link>https://community.qlik.com/t5/QlikView/Sort-top-10-by-Month/m-p/449536#M167764</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Michael, very neat suggestion, I like it!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jim, you can try to modify my solution to implement Michael's island field, which should work well. First, keep in mind that the only chart dimension has to be Month, not the second dimension. Also, in the example I posted, expand the expressions and note the Background Color expressions that have been defined. My solution requires that your second "dimension" (which is really an expression) have static coloring set in the script; the expressions also cannot appear as a legend, so if you need to have a legend, I suggest you create a straight table like the one in my example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vlad&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Dec 2012 22:06:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sort-top-10-by-Month/m-p/449536#M167764</guid>
      <dc:creator>vgutkovsky</dc:creator>
      <dc:date>2012-12-19T22:06:41Z</dc:date>
    </item>
    <item>
      <title>Re: Sort top 10 by Month</title>
      <link>https://community.qlik.com/t5/QlikView/Sort-top-10-by-Month/m-p/449537#M167765</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;PFA file, I managed to get the top 10 by month and ordered in descending in Straight table by using single expression.&amp;nbsp; But it is not accurate in Line chart.&amp;nbsp; &lt;/P&gt;&lt;P&gt;Please check, hope it may be helpful for you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Dec 2012 08:17:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sort-top-10-by-Month/m-p/449537#M167765</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2012-12-20T08:17:35Z</dc:date>
    </item>
  </channel>
</rss>

