<?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: Rank with Ties in Bar Chart in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Rank-with-Ties-in-Bar-Chart/m-p/480040#M1139618</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you considered using the Dimension Limits function.&amp;nbsp; It is possible to simply enter show top x in the limits.&amp;nbsp; However if there is a tie then it will not display more than x.&amp;nbsp; You can make this expression more dynamic by testing how many members are in the top x.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example the expression below will return the number of member which are in the top 5 including ties.&amp;nbsp; This expression can be used in the Dimension Limits tab so all the ties are included.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=len(concat(&lt;/P&gt;&lt;P&gt;KeepChar((aggr(rank(sum(Data),1,1),Member)),12345)&lt;/P&gt;&lt;P&gt;))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;see the attached QVW for it in action.&amp;nbsp; Look at the Dimension Limits tab in the chart properties.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Sep 2013 21:41:51 GMT</pubDate>
    <dc:creator>Josh_Good</dc:creator>
    <dc:date>2013-09-25T21:41:51Z</dc:date>
    <item>
      <title>Rank with Ties in Bar Chart</title>
      <link>https://community.qlik.com/t5/QlikView/Rank-with-Ties-in-Bar-Chart/m-p/480039#M1139617</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm trying to create separate bar charts displaying TOP5 Damages by Area Description.&amp;nbsp;&amp;nbsp; I'm experiencing an issue.&amp;nbsp; I use the calculated dimension, &lt;STRONG&gt;aggr(if(rank(sum([Dam Occur]))=1,[Area Description]),[Area Description]) for the first chart&lt;/STRONG&gt;, a&lt;STRONG&gt;ggr(if(rank(sum([Dam Occur]))=2 ,[Area Description]),[Area Description]),&lt;/STRONG&gt; and so fourth.&amp;nbsp; With this function it orders the values in descending order, but I have multiple values that have the same total count, and the last four charts are blank.&amp;nbsp; How can create the charts even if the values are the same?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For instance:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum A = 10&lt;/P&gt;&lt;P&gt;Sum B = 8&lt;/P&gt;&lt;P&gt;Sum C = 6&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum D = 2&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum E = 2&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum F = 2&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum G = 2&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Sep 2013 20:23:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rank-with-Ties-in-Bar-Chart/m-p/480039#M1139617</guid>
      <dc:creator>pageomet</dc:creator>
      <dc:date>2013-09-25T20:23:09Z</dc:date>
    </item>
    <item>
      <title>Re: Rank with Ties in Bar Chart</title>
      <link>https://community.qlik.com/t5/QlikView/Rank-with-Ties-in-Bar-Chart/m-p/480040#M1139618</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you considered using the Dimension Limits function.&amp;nbsp; It is possible to simply enter show top x in the limits.&amp;nbsp; However if there is a tie then it will not display more than x.&amp;nbsp; You can make this expression more dynamic by testing how many members are in the top x.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example the expression below will return the number of member which are in the top 5 including ties.&amp;nbsp; This expression can be used in the Dimension Limits tab so all the ties are included.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=len(concat(&lt;/P&gt;&lt;P&gt;KeepChar((aggr(rank(sum(Data),1,1),Member)),12345)&lt;/P&gt;&lt;P&gt;))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;see the attached QVW for it in action.&amp;nbsp; Look at the Dimension Limits tab in the chart properties.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Sep 2013 21:41:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rank-with-Ties-in-Bar-Chart/m-p/480040#M1139618</guid>
      <dc:creator>Josh_Good</dc:creator>
      <dc:date>2013-09-25T21:41:51Z</dc:date>
    </item>
  </channel>
</rss>

