<?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: Find Position in Sorted List in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Find-Position-in-Sorted-List/m-p/605666#M223728</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This can be achieved by below two expressions in TEXT BOX.&lt;/P&gt;&lt;P&gt;Please check enclosed file...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Aggr(IF(Region = GetFieldSelections(Region),Rank(SUM({1}sales))),Region)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Aggr(Rank(SUM({1}sales)),Region)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 05 Apr 2014 07:55:13 GMT</pubDate>
    <dc:creator>MK_QSL</dc:creator>
    <dc:date>2014-04-05T07:55:13Z</dc:date>
    <item>
      <title>Find Position in Sorted List</title>
      <link>https://community.qlik.com/t5/QlikView/Find-Position-in-Sorted-List/m-p/605662#M223724</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to find a way to calculate a specific position index of a dimension for a given expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example: If we have the chart expression 'sum(sales)' and the chart dimension 'Region', how could I find the position of a specific region in the result? Let's say I am interested in the 'Northeast' region and I have the following results from the expression/dimension above: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Southeast: 120,000&lt;/P&gt;&lt;P&gt;Southwest: 105,000&lt;/P&gt;&lt;P&gt;Midwest: 78,000&lt;/P&gt;&lt;P&gt;Northeast: 72,000&lt;/P&gt;&lt;P&gt;West: 34,000&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to display in a text box the position of the 'Northeast' region. So my text box would contain the number 4, since 'Northeast' is 4th in sorted order.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Even though this seems trivial, I cannot find a built-in function that does this and I've been racking my brain but cannot come up with a solution. Any ideas?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Apr 2014 23:29:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Find-Position-in-Sorted-List/m-p/605662#M223724</guid>
      <dc:creator>bdiamante</dc:creator>
      <dc:date>2014-04-04T23:29:54Z</dc:date>
    </item>
    <item>
      <title>Re: Find Position in Sorted List</title>
      <link>https://community.qlik.com/t5/QlikView/Find-Position-in-Sorted-List/m-p/605663#M223725</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you consider using Rank() function? If you add the column Rank(Sum(sales)), it will display 4 for your data.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 05 Apr 2014 00:12:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Find-Position-in-Sorted-List/m-p/605663#M223725</guid>
      <dc:creator>nagaiank</dc:creator>
      <dc:date>2014-04-05T00:12:08Z</dc:date>
    </item>
    <item>
      <title>Re: Find Position in Sorted List</title>
      <link>https://community.qlik.com/t5/QlikView/Find-Position-in-Sorted-List/m-p/605664#M223726</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;for : Northeast you can use : &lt;/P&gt;&lt;P&gt;=&lt;SPAN class="s1"&gt;only&lt;/SPAN&gt;({&amp;lt;&lt;SPAN class="s2"&gt;col1&lt;/SPAN&gt;={'Northeast'}&amp;gt;} &lt;SPAN class="s1"&gt;aggr&lt;/SPAN&gt;((&lt;SPAN class="s1"&gt;rank&lt;/SPAN&gt;(&lt;SPAN class="s1"&gt;sum&lt;/SPAN&gt;((&lt;SPAN class="s2"&gt;col2&lt;/SPAN&gt;)))),&lt;SPAN class="s2"&gt;col1&lt;/SPAN&gt;)) &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 05 Apr 2014 00:33:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Find-Position-in-Sorted-List/m-p/605664#M223726</guid>
      <dc:creator>mambi</dc:creator>
      <dc:date>2014-04-05T00:33:08Z</dc:date>
    </item>
    <item>
      <title>Re: Find Position in Sorted List</title>
      <link>https://community.qlik.com/t5/QlikView/Find-Position-in-Sorted-List/m-p/605665#M223727</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Brian,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please find attached file, it will help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Regards,&lt;/P&gt;&lt;P&gt;Vishal Waghole&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 05 Apr 2014 05:39:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Find-Position-in-Sorted-List/m-p/605665#M223727</guid>
      <dc:creator>VishalWaghole</dc:creator>
      <dc:date>2014-04-05T05:39:14Z</dc:date>
    </item>
    <item>
      <title>Re: Find Position in Sorted List</title>
      <link>https://community.qlik.com/t5/QlikView/Find-Position-in-Sorted-List/m-p/605666#M223728</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This can be achieved by below two expressions in TEXT BOX.&lt;/P&gt;&lt;P&gt;Please check enclosed file...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Aggr(IF(Region = GetFieldSelections(Region),Rank(SUM({1}sales))),Region)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Aggr(Rank(SUM({1}sales)),Region)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 05 Apr 2014 07:55:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Find-Position-in-Sorted-List/m-p/605666#M223728</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2014-04-05T07:55:13Z</dc:date>
    </item>
    <item>
      <title>Re: Find Position in Sorted List</title>
      <link>https://community.qlik.com/t5/QlikView/Find-Position-in-Sorted-List/m-p/605667#M223729</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is exactly what I was looking for thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 05 Apr 2014 14:51:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Find-Position-in-Sorted-List/m-p/605667#M223729</guid>
      <dc:creator>bdiamante</dc:creator>
      <dc:date>2014-04-05T14:51:23Z</dc:date>
    </item>
  </channel>
</rss>

