<?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 App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Rank-function/m-p/2067638#M87585</link>
    <description>&lt;P&gt;The second option mightn't not work if you have other selections as well.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 04 May 2023 11:28:45 GMT</pubDate>
    <dc:creator>tresB</dc:creator>
    <dc:date>2023-05-04T11:28:45Z</dc:date>
    <item>
      <title>Rank function</title>
      <link>https://community.qlik.com/t5/App-Development/Rank-function/m-p/2067577#M87579</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;
&lt;P&gt;If I have a table showing dimension and a measure (lets say Store and sales)&lt;/P&gt;
&lt;P&gt;I want to add ranking for each store based on sales.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is easy.&lt;/P&gt;
&lt;P&gt;But what is the formula for set analysis if I want to add a KPI showing this ranking number for a selected store based on the whole data set.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Everything I have tried returns 1 since the data is showing sales for this single store.&lt;/P&gt;</description>
      <pubDate>Thu, 04 May 2023 08:53:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Rank-function/m-p/2067577#M87579</guid>
      <dc:creator>jokelaa</dc:creator>
      <dc:date>2023-05-04T08:53:25Z</dc:date>
    </item>
    <item>
      <title>Re: Rank function</title>
      <link>https://community.qlik.com/t5/App-Development/Rank-function/m-p/2067595#M87580</link>
      <description>&lt;P&gt;You have to disregard the selection (use set analysis) to bring all the stores so that the rank can be calculated against all stores. If you are trying this in a text/kpi object, try like:&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;Aggr(Rank(Sum({1}Sales)), Store)&amp;nbsp; &amp;nbsp; &amp;nbsp; // or {&amp;lt;Store&amp;gt;} instead of '{1}'&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;If in a chart, you might not need aggr.&lt;/P&gt;</description>
      <pubDate>Thu, 04 May 2023 09:53:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Rank-function/m-p/2067595#M87580</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2023-05-04T09:53:07Z</dc:date>
    </item>
    <item>
      <title>Re: Rank function</title>
      <link>https://community.qlik.com/t5/App-Development/Rank-function/m-p/2067629#M87582</link>
      <description>&lt;P&gt;Thank you!!&lt;/P&gt;
&lt;P&gt;I was on the right track and had tried the other one you suggested. For some reason that one does not work but the other one did. Can you explain why is this so &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Below pics for both versions. The one above works but the one below does not.&lt;/P&gt;
&lt;P&gt;What am I missing?&lt;/P&gt;
&lt;P&gt;Location is our version of store&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jokelaa_0-1683199065907.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/106449i1B17F127C4979A20/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jokelaa_0-1683199065907.png" alt="jokelaa_0-1683199065907.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 May 2023 11:18:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Rank-function/m-p/2067629#M87582</guid>
      <dc:creator>jokelaa</dc:creator>
      <dc:date>2023-05-04T11:18:58Z</dc:date>
    </item>
    <item>
      <title>Re: Rank function</title>
      <link>https://community.qlik.com/t5/App-Development/Rank-function/m-p/2067638#M87585</link>
      <description>&lt;P&gt;The second option mightn't not work if you have other selections as well.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 May 2023 11:28:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Rank-function/m-p/2067638#M87585</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2023-05-04T11:28:45Z</dc:date>
    </item>
  </channel>
</rss>

