<?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: Bottom 5 customer issue in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Bottom-5-customer-issue/m-p/1561122#M743692</link>
    <description>Awesome many thanks,&lt;BR /&gt;I swear trying dimension limits, didn't work for me last time hence the rank function!&lt;BR /&gt;Appreciate the time and advice Jaime</description>
    <pubDate>Tue, 26 Mar 2019 07:56:54 GMT</pubDate>
    <dc:creator>marcus_steggall</dc:creator>
    <dc:date>2019-03-26T07:56:54Z</dc:date>
    <item>
      <title>Bottom 5 customer issue</title>
      <link>https://community.qlik.com/t5/QlikView/Bottom-5-customer-issue/m-p/1560672#M743690</link>
      <description>&lt;P&gt;Hi team&lt;/P&gt;&lt;P&gt;Quick query, which my eyes cannot see&lt;/P&gt;&lt;P&gt;basically as per attached file, im trying to rank top 5 and bottom 5 customers, within a bar graph.&lt;/P&gt;&lt;P&gt;As you can see from middle table, the top 5 is working perfectly numbers wise.&lt;/P&gt;&lt;P&gt;However, the bottom 5 is nonsense in numbers and i can't see why?&lt;/P&gt;&lt;P&gt;I've done the minus in front of sum, within the calculation (total -Sum)&lt;/P&gt;&lt;P&gt;Any advice would be greatly appreciated.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 04:03:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Bottom-5-customer-issue/m-p/1560672#M743690</guid>
      <dc:creator>marcus_steggall</dc:creator>
      <dc:date>2024-11-16T04:03:45Z</dc:date>
    </item>
    <item>
      <title>Re: Bottom 5 customer issue</title>
      <link>https://community.qlik.com/t5/QlikView/Bottom-5-customer-issue/m-p/1560713#M743691</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;There are two mistakes in your file:&lt;/P&gt;&lt;P&gt;1) In your "bottom" chart, you use a rank function. This rank function ranks by "minus the rank function in your top chart". The logic is correct but you missed a sign change. You used&lt;/P&gt;&lt;PRE&gt;IF(

rank(total -SUM({&amp;lt;Year_YYYY={'$(vMaxYear)'},Period_P=,Period_Start={"&amp;lt;=$(vMaxDate)"}&amp;gt;}[AMT R]) 
- 
Sum({$&amp;lt;Year_YYYY={'$(vPriorYear)'},Period_P=,Period_Start={"&amp;lt;=$(vPriorYearDate)"}&amp;gt;}[AMT R]))&amp;lt;=5,


(SUM({&amp;lt;Year_YYYY={'$(vMaxYear)'},Period_P=,Period_Start={"&amp;lt;=$(vMaxDate)"}&amp;gt;}[AMT R])
-
Sum({$&amp;lt;Year_YYYY={'$(vPriorYear)'},Period_P=,Period_Start={"&amp;lt;=$(vPriorYearDate)"}&amp;gt;}[AMT R])))&lt;/PRE&gt;&lt;P&gt;But it should be&lt;/P&gt;&lt;PRE&gt;IF(

rank(total -SUM({&amp;lt;Year_YYYY={'$(vMaxYear)'},Period_P=,Period_Start={"&amp;lt;=$(vMaxDate)"}&amp;gt;}[AMT &lt;FONT color="#FF0000"&gt;R]) 
+&lt;/FONT&gt; &lt;FONT color="#339966"&gt;//It has to be a "+"!!&lt;/FONT&gt;
Sum({$&amp;lt;Year_YYYY={'$(vPriorYear)'},Period_P=,Period_Start={"&amp;lt;=$(vPriorYearDate)"}&amp;gt;}[AMT R]))&amp;lt;=5,


(SUM({&amp;lt;Year_YYYY={'$(vMaxYear)'},Period_P=,Period_Start={"&amp;lt;=$(vMaxDate)"}&amp;gt;}[AMT R])
-
Sum({$&amp;lt;Year_YYYY={'$(vPriorYear)'},Period_P=,Period_Start={"&amp;lt;=$(vPriorYearDate)"}&amp;gt;}[AMT R])))&lt;/PRE&gt;&lt;P&gt;2) It is not the correct way to shoy top/bottom customers. The right and easiest way is by configuring the "Dimension Limits" tab in your chart properties.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please, find the attached file (I think that I explained myself quite bad)&lt;/P&gt;&lt;P&gt;Bests,&lt;/P&gt;&lt;P&gt;Jaime.&lt;/P&gt;</description>
      <pubDate>Mon, 25 Mar 2019 12:01:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Bottom-5-customer-issue/m-p/1560713#M743691</guid>
      <dc:creator>jaibau1993</dc:creator>
      <dc:date>2019-03-25T12:01:10Z</dc:date>
    </item>
    <item>
      <title>Re: Bottom 5 customer issue</title>
      <link>https://community.qlik.com/t5/QlikView/Bottom-5-customer-issue/m-p/1561122#M743692</link>
      <description>Awesome many thanks,&lt;BR /&gt;I swear trying dimension limits, didn't work for me last time hence the rank function!&lt;BR /&gt;Appreciate the time and advice Jaime</description>
      <pubDate>Tue, 26 Mar 2019 07:56:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Bottom-5-customer-issue/m-p/1561122#M743692</guid>
      <dc:creator>marcus_steggall</dc:creator>
      <dc:date>2019-03-26T07:56:54Z</dc:date>
    </item>
  </channel>
</rss>

