<?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: Helping with Ranking when returning 1 row in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Helping-with-Ranking-when-returning-1-row/m-p/584187#M216903</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try&lt;/P&gt;&lt;P&gt;SUM({1}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If possible, try to provide some sample data or apps !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 01 May 2014 10:44:09 GMT</pubDate>
    <dc:creator>MK_QSL</dc:creator>
    <dc:date>2014-05-01T10:44:09Z</dc:date>
    <item>
      <title>Helping with Ranking when returning 1 row</title>
      <link>https://community.qlik.com/t5/QlikView/Helping-with-Ranking-when-returning-1-row/m-p/584186#M216902</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have an awards table in Qlikview thats ranks our branches based on certain KPI's Years to Sales sales etc&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have used the Rank() function and this works very well unless you filter on a branch then the Rank automatically becomes 1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to find a way of selecting a branch but keeping the original ranking of the whole 140 branches in the table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried using set analysis however when i select the branch as a filter it still shows all the branches&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;example=&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;rank&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;total&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;-(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;BranchTable_MapBranchName&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;=,&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;BranchTable_CH_Flag&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={'Y'}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Order Net Qty]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;*&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;CYPM&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)/&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;BranchTable_MapBranchName&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;=,&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;BranchTable_CH_Flag&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={'Y'}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Order Net Cust]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;*&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;CYPM&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;))-1,3,1) &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Some advise would be great&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 May 2014 10:43:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Helping-with-Ranking-when-returning-1-row/m-p/584186#M216902</guid>
      <dc:creator />
      <dc:date>2014-05-01T10:43:07Z</dc:date>
    </item>
    <item>
      <title>Re: Helping with Ranking when returning 1 row</title>
      <link>https://community.qlik.com/t5/QlikView/Helping-with-Ranking-when-returning-1-row/m-p/584187#M216903</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try&lt;/P&gt;&lt;P&gt;SUM({1}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If possible, try to provide some sample data or apps !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 May 2014 10:44:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Helping-with-Ranking-when-returning-1-row/m-p/584187#M216903</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2014-05-01T10:44:09Z</dc:date>
    </item>
    <item>
      <title>Re: Helping with Ranking when returning 1 row</title>
      <link>https://community.qlik.com/t5/QlikView/Helping-with-Ranking-when-returning-1-row/m-p/584188#M216904</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank Manish for your reply&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have changed the expression to if(BranchTable_CH_Flag='Y',rank(total -(Sum ([Order Net Cust]*CYPM))-1,3,1),0)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This returns the correct ranking when I select 1 branch however in the straight table it returns a rank of 0 for all the other branches not selected&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I’m trying to do is only display 1 row with say Rank 120&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 May 2014 11:01:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Helping-with-Ranking-when-returning-1-row/m-p/584188#M216904</guid>
      <dc:creator />
      <dc:date>2014-05-01T11:01:26Z</dc:date>
    </item>
  </channel>
</rss>

