<?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: Complex Set Analysis for ranking in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Complex-Set-Analysis-for-ranking/m-p/64341#M10711</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Would you be able to share a sample to look at what you have?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 08 Feb 2018 12:15:18 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2018-02-08T12:15:18Z</dc:date>
    <item>
      <title>Complex Set Analysis for ranking</title>
      <link>https://community.qlik.com/t5/QlikView/Complex-Set-Analysis-for-ranking/m-p/64340#M10710</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;I'm using the rank() function to create a chart that only represents the "5 over / 5 under" values of a particular expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For instance :&lt;/P&gt;&lt;P&gt;I've got 39 entities and , for a particular KPI, I want to display :&lt;/P&gt;&lt;P&gt;- The value for 1 entity (that is stored in a variable throughout the whole application in v_CRCA)&lt;/P&gt;&lt;P&gt;- The values of, at most, the expression for the next 5 entities&lt;/P&gt;&lt;P&gt;- The values of, at most, the expression for the previous 5 entities&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, if my main entity is ranked 5th, I want to see it along the entities that are ranked from 10 to 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The properties of my graph are :&lt;/P&gt;&lt;P&gt;- Dimensions : Entity | Year&lt;/P&gt;&lt;P&gt;- Expression : &lt;/P&gt;&lt;P&gt;if(&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;rank(Total Sum({&amp;lt;Entity+={$(v_CRCA)}, Marche=&amp;gt;}[Mtt Sinistres]),4,0)&amp;gt;=&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Only({1&amp;lt;&lt;SPAN style="font-size: 13.3333px;"&gt;Entity&lt;/SPAN&gt;={$(v_CRCA)}&amp;gt;}aggr(rank(Sum({ &amp;lt;&lt;SPAN style="font-size: 13.3333px;"&gt;Entity&lt;/SPAN&gt;=&amp;gt; } [Mtt Sinistres]),1,1),&lt;SPAN style="font-size: 13.3333px;"&gt;Entity&lt;/SPAN&gt;))-5 &lt;/P&gt;&lt;P&gt;and&lt;/P&gt;&lt;P&gt;rank(Total Sum({&amp;lt;&lt;SPAN style="font-size: 13.3333px;"&gt;Entity&lt;/SPAN&gt;+={$(v_CRCA)}, Marche=&amp;gt;}[Mtt Sinistres]),4,0)&amp;lt;=&lt;/P&gt;&lt;P&gt;&amp;nbsp; Only({1&amp;lt;&lt;SPAN style="font-size: 13.3333px;"&gt;Entity&lt;/SPAN&gt;={$(v_CRCA)}&amp;gt;}aggr(rank(Sum({ &amp;lt;&lt;SPAN style="font-size: 13.3333px;"&gt;Entity&lt;/SPAN&gt;=&amp;gt; } [Mtt Sinistres],1,1),&lt;SPAN style="font-size: 13.3333px;"&gt;Entity&lt;/SPAN&gt;)))+5&lt;/P&gt;&lt;P&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sum({&amp;lt;&lt;SPAN style="font-size: 13.3333px;"&gt;Entity&lt;/SPAN&gt;+={$(v_CRCA)}, Marche=&amp;gt;}[Mtt Sinistres])&lt;/P&gt;&lt;P&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Null()&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've got 2 possible years (N &amp;amp; N-1) and it goes fine if I select just 1 year. But if I select 2 years, It gets lost in the rankings. (I want the ranking to be based on the last year only)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've attached 2 pics to show the difference (my final representation will be a bar chart).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'd like to have the same ranking value for N &amp;amp; N-1 (N's ranking)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Feb 2018 08:41:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Complex-Set-Analysis-for-ranking/m-p/64340#M10710</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-02-07T08:41:27Z</dc:date>
    </item>
    <item>
      <title>Re: Complex Set Analysis for ranking</title>
      <link>https://community.qlik.com/t5/QlikView/Complex-Set-Analysis-for-ranking/m-p/64341#M10711</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Would you be able to share a sample to look at what you have?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Feb 2018 12:15:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Complex-Set-Analysis-for-ranking/m-p/64341#M10711</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-02-08T12:15:18Z</dc:date>
    </item>
  </channel>
</rss>

