<?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 function in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Rank-function/m-p/80483#M785727</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;Thanks, it works perfectly.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 12 Mar 2018 11:31:21 GMT</pubDate>
    <dc:creator>txepulin</dc:creator>
    <dc:date>2018-03-12T11:31:21Z</dc:date>
    <item>
      <title>Rank function</title>
      <link>https://community.qlik.com/t5/QlikView/Rank-function/m-p/80481#M785725</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Hello,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;As much as I searched, I can't find the answer.&lt;/P&gt;&lt;P&gt;I've a table with a single dimension, StoreCodeDesc, and I want to know the weight of the top 100 of the best selling products on the total sales of each store.&lt;/P&gt;&lt;P&gt;On the one hand I want to know the weight that the &lt;STRONG&gt;Top 100 global&lt;/STRONG&gt; has, I use the formula:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum ({&amp;lt;ArticleCode = {'= rank (&lt;SPAN style="color: #ff0000;"&gt;Total&lt;/SPAN&gt; Sum (NetAmount)) &amp;lt;= 100'}&amp;gt;} NetAmount) / sum (NetAmount)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For another hand I want to know the weight of the &lt;STRONG&gt;Top 100 of each store&lt;/STRONG&gt; with the formula without Total:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum ({&amp;lt;ArticleCode = {'= rank (Sum (NetAmount)) &amp;lt;= 100'}&amp;gt;} NetAmount) / sum (NetAmount)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Both formulas give me the same result, the weight of the top 100 global sales of each store, but I don't get the weight of the top 100 of each store.&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rank-function/m-p/80481#M785725</guid>
      <dc:creator>txepulin</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Rank function</title>
      <link>https://community.qlik.com/t5/QlikView/Rank-function/m-p/80482#M785726</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For each store, you can try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum(Aggr(If(Rank(Sum(NetAmount)) &amp;lt;= 100, Sum(NetAmount)), Store, ArticleCode))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Mar 2018 17:13:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rank-function/m-p/80482#M785726</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-03-09T17:13:07Z</dc:date>
    </item>
    <item>
      <title>Re: Rank function</title>
      <link>https://community.qlik.com/t5/QlikView/Rank-function/m-p/80483#M785727</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;Thanks, it works perfectly.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Mar 2018 11:31:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rank-function/m-p/80483#M785727</guid>
      <dc:creator>txepulin</dc:creator>
      <dc:date>2018-03-12T11:31:21Z</dc:date>
    </item>
  </channel>
</rss>

