<?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: Top and Rank in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Top-and-Rank/m-p/1261587#M397877</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks, but I want&lt;/P&gt;&lt;P&gt;button effect on the list &lt;/P&gt;&lt;P&gt;&lt;IMG alt="Clip2net_170103110252.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/148143_Clip2net_170103110252.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 03 Jan 2017 08:04:30 GMT</pubDate>
    <dc:creator />
    <dc:date>2017-01-03T08:04:30Z</dc:date>
    <item>
      <title>Top and Rank</title>
      <link>https://community.qlik.com/t5/QlikView/Top-and-Rank/m-p/1261580#M397870</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 have 2 questions.&lt;/P&gt;&lt;P&gt;Firs: Maybe do you know how through button I can&amp;nbsp; to select in filter (list) thise products ( top 4)&lt;/P&gt;&lt;P&gt;But I don't understand why I see 3 products, if my exspression - Product = {"=Rank(Sum(volumn))&amp;lt;=4"}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="148123" alt="Мй.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/148123_Мй.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;and&lt;/P&gt;&lt;P&gt;Second&lt;/P&gt;&lt;P&gt;How &lt;SPAN style="color: #212121; font-family: arial, sans-serif; font-size: 16px;"&gt;Qv selects which display in top product, if they are of equal value&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="148142" alt="v2.png" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/148142_v2.png" style="height: auto;" /&gt; !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jan 2017 06:45:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Top-and-Rank/m-p/1261580#M397870</guid>
      <dc:creator />
      <dc:date>2017-01-03T06:45:55Z</dc:date>
    </item>
    <item>
      <title>Re: Top and Rank</title>
      <link>https://community.qlik.com/t5/QlikView/Top-and-Rank/m-p/1261581#M397871</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;if you add rank in Your straight table you see that you have 3 Product that is &amp;lt;=4.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="rank.GIF" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/148132_rank.GIF" style="width: 620px; height: 205px;" /&gt;&lt;/P&gt;&lt;P&gt;If they have the same value, qlikview wont know who to display, both will be visible.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jan 2017 07:30:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Top-and-Rank/m-p/1261581#M397871</guid>
      <dc:creator>stabben23</dc:creator>
      <dc:date>2017-01-03T07:30:27Z</dc:date>
    </item>
    <item>
      <title>Re: Top and Rank</title>
      <link>https://community.qlik.com/t5/QlikView/Top-and-Rank/m-p/1261582#M397872</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If you want to show top 3 products volumn. don't use rank function in expressions use in add calculated dim, try below this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Add calculated dim:- =if(aggr(rank(sum(volumn)),product)&amp;lt;=3,product)&lt;/P&gt;&lt;P&gt;exp:-&amp;nbsp;&amp;nbsp; sum(volumn)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards, &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jan 2017 07:40:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Top-and-Rank/m-p/1261582#M397872</guid>
      <dc:creator>pathiqvd</dc:creator>
      <dc:date>2017-01-03T07:40:29Z</dc:date>
    </item>
    <item>
      <title>Re: Top and Rank</title>
      <link>https://community.qlik.com/t5/QlikView/Top-and-Rank/m-p/1261583#M397873</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want, if I click on the button&amp;nbsp; "Rank", in list i see product like to text object&amp;nbsp; ( first questions)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jan 2017 07:43:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Top-and-Rank/m-p/1261583#M397873</guid>
      <dc:creator />
      <dc:date>2017-01-03T07:43:51Z</dc:date>
    </item>
    <item>
      <title>Re: Top and Rank</title>
      <link>https://community.qlik.com/t5/QlikView/Top-and-Rank/m-p/1261584#M397874</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rank() function can take two additional parameters: mode and fmt&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The documentation explains the additional parameters and how they affect the ranking:&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.qlik.com/en-US/qlikview/12.1/Subsystems/Client/Content/ChartFunctions/RankingFunctions/rank.htm" style="font-size: 10pt;" title="http://help.qlik.com/en-US/qlikview/12.1/Subsystems/Client/Content/ChartFunctions/RankingFunctions/rank.htm"&gt;http://help.qlik.com/en-US/qlikview/12.1/Subsystems/Client/Content/ChartFunctions/RankingFunctions/rank.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your textbox you will have to use this expression to get all four top ranking products:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Concat(DISTINCT {&amp;lt;Product = {"=Rank(Sum(volumn)&lt;STRONG&gt;,4&lt;/STRONG&gt;)&amp;lt;=4"}&amp;gt;} Product, ' | ')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Notice the added second parameter to Rank in this expression. Mode=4 which means that every ranked product should get a unique ranking even if two or more products rank equally. With you Rank with no additonal parameters you will get a numeric ranking of 1 to 3 for each product and the rest of the products are ranked from 5 and upwards - it leaves a missing rank of 4 since two products are ranked as 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For your second question - you can by using the additional mode parameter to choose whether you will have the same ranking value for two or more products that have equal ranking or if they should have unique rankings even if they are equal. They will then be ranked according to sort order in your chart.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Notice also that Rank returns dual values - both a text and a number.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have attached a modified QlikView app to illustrate a little bit:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="2017-01-03 08_42_48-QlikView x64 - [C__Users_psd_Downloads_Rank and button.qvw_].png" class="jive-image image-1" src="/legacyfs/online/148140_2017-01-03 08_42_48-QlikView x64 - [C__Users_psd_Downloads_Rank and button.qvw_].png" style="height: 106px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jan 2017 07:44:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Top-and-Rank/m-p/1261584#M397874</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2017-01-03T07:44:38Z</dc:date>
    </item>
    <item>
      <title>Re: Top and Rank</title>
      <link>https://community.qlik.com/t5/QlikView/Top-and-Rank/m-p/1261585#M397875</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I updated you sample application to work with a button too - see attached QVW...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jan 2017 07:48:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Top-and-Rank/m-p/1261585#M397875</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2017-01-03T07:48:00Z</dc:date>
    </item>
    <item>
      <title>Re: Top and Rank</title>
      <link>https://community.qlik.com/t5/QlikView/Top-and-Rank/m-p/1261586#M397876</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;&amp;nbsp;&amp;nbsp;&amp;nbsp; Try this in text object&lt;/P&gt;&lt;P&gt; create one variable like vBT after create button and write below condition in ext object&lt;/P&gt;&lt;P&gt;=if(vBT=0,concat(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;if(aggr(rank(sum(volumn)),product)&amp;lt;=3,product)&lt;/SPAN&gt;,'|'))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jan 2017 07:51:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Top-and-Rank/m-p/1261586#M397876</guid>
      <dc:creator>pathiqvd</dc:creator>
      <dc:date>2017-01-03T07:51:09Z</dc:date>
    </item>
    <item>
      <title>Re: Top and Rank</title>
      <link>https://community.qlik.com/t5/QlikView/Top-and-Rank/m-p/1261587#M397877</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks, but I want&lt;/P&gt;&lt;P&gt;button effect on the list &lt;/P&gt;&lt;P&gt;&lt;IMG alt="Clip2net_170103110252.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/148143_Clip2net_170103110252.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jan 2017 08:04:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Top-and-Rank/m-p/1261587#M397877</guid>
      <dc:creator />
      <dc:date>2017-01-03T08:04:30Z</dc:date>
    </item>
    <item>
      <title>Re: Top and Rank</title>
      <link>https://community.qlik.com/t5/QlikView/Top-and-Rank/m-p/1261588#M397878</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Then this should do the trick:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="2017-01-03 09_23_32-Edit Expression.png" class="jive-image image-1" src="/legacyfs/online/148141_2017-01-03 09_23_32-Edit Expression.png" style="height: 342px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jan 2017 08:24:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Top-and-Rank/m-p/1261588#M397878</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2017-01-03T08:24:14Z</dc:date>
    </item>
  </channel>
</rss>

